2.0.3 • Published 2 years ago

simpler-logs v2.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Simpler logs

Other logging systems are more feature rich. This is not that.

This is quick and dirty and works. I wnat this. This whole package is 40 lines. and really most of them are redundent.

Usage

Install

yarn add simpler-logs

Create logger

import {Logger} from 'simpler-logs'

// Logger with prefix "example" and defaults to debug level
const logger = new Logger('example', 'debug')

// Will be logged as a debug log (grey)
logger.log('Hello world')

// Will instead by 'info' level (white)
logger.log('Hello world', 'info')

// Will be more visable (cyan)
logger.log('Hello world', 'important')
2.0.3

2 years ago

2.0.2

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago