1.0.7 • Published 6 years ago

@sparkly/logger v1.0.7

Weekly downloads
1
License
MIT
Repository
-
Last release
6 years ago

Sparkly Logger

This is a small logger with a simple API that can run in the browser, console or with electron (Coming soon).

It is one tool in the sparkly suite of tools I am currently developing.

It uses chalk for colors ouput (browser and console support). It also allows you to configure per-logger settings.

Examples

import Logger from '@sparkly/logger';

const log = Logger.getLogger('MainProcess')

// Output: "[MainProcess 1:50:30 PM]  Hello World"
log.info('Hello World')
// Output: "[MainProcess 1:50:30]   WARN :: Try running yarn example at the root of the repository !"  
log.warn('Try running yarn example at the root of the repository !');
// Output: "[MainProcess 1:50:30 PM]  ERROR  ::  Goodbye All :)"
log.error('Goodbye All :)')
1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago