Skip to content

lucsh/color-logger-for-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Color Logger

colorful logger for client.

npm install --save lucsh/color-logger-for-client

Example

import Logger from 'color-logger-for-client';

// simple usage
Logger.v('verbose log1', 'verbose log2');

// to disable 
Logger.debug = false;

// use object
Logger.d({foo: 123, bar: [1, 2, 3]});

// all log level and colors
Logger.v('verbose log');
Logger.d('debug log');
Logger.i('info log');
Logger.w('warning log');
Logger.e('error log');
Logger.n('normal log');

## License MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published