Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 850 Bytes

README.md

File metadata and controls

33 lines (24 loc) · 850 Bytes

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 },
  );
});