Skip to content

lucsh/color-logger

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Color Logger

colorful logger for node.

npm install --save lucsh/color-logger

Example

import Logger from 'colorful-logger-node';

// 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');
Logger.t('with timestamp (same line)');

## License MIT

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 93.9%
  • Shell 6.1%