Skip to content

cpuchain/logger-opt

Repository files navigation

logger-opt

NPM Version

Optimized Node.js logger for TypeScript Projects

How to use

$ yarn add logger-opt
import { Logger } from 'logger-opt';

const logger = new Logger();

const logger2 = new Logger(undefined, 'Main');

const logger3 = new Logger(undefined, 'Main2', 'MainFunc');

logger.debug('this is test');

logger2.debug('this is test');

logger2.info('this is test');

logger2.warning('this is test');

logger2.error('this is test');

logger3.debug('this is test');

logger2.debug('Main', 'MainFunc2', 'this is test');

logger2.debug('Main', 'MainFunc3', 'this is test', 'subtest');

logger2.warning('Main', 'MainFunc', 'this is warning');

About

Optimized Node.js logger for TypeScript Projects

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Generated from cpuchain/ts-template