@transcend-io/logger
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

Transcend Browser Logger

A logger with style


Table of Contents

Usage example

This example snippet outputs [log tag] red blue green [interactive object] in your console with relevant styles and native console interactivity

import { createLogger } from '@transcend-io/logger';

const logger = createLogger();

logger.tag('[log tag]', () => {
  logger.log.styled(
    ['color:red', 'color:blue', 'color:green'],
    '%cred %cblue %cgreen',
    { rich: 'object', interactive: true },
  );
});

Readme

Keywords

none

Package Sidebar

Install

npm i @transcend-io/logger

Weekly Downloads

2,730

Version

1.1.0

License

MIT

Unpacked Size

52.1 kB

Total Files

16

Last publish

Collaborators

  • michaelfarrell76
  • bencmbrook
  • mason-hale
  • dmattia
  • eli
  • kearnie
  • transcend-bot