1.0.7 • Published 2 years ago

yz-log v1.0.7

Weekly downloads
1
License
ISC
Repository
-
Last release
2 years ago

installation

npm install yz-log

usage

var log = require('yz-log').log;
const logger = new log({name:'model-a',type:'api'})
logger.debug('debug something.');
logger.info('app is starting.');
logger.warn('something is warn!');
logger.error('something is error!!');
logger.verbose('some details!!');

Output (in api.log):

[2018-10-10T09:32:11+08:00] [debug] model-a@api -> debug something.
[2018-10-10T09:32:11+08:00] [info] model-a@api -> app is starting.
[2018-10-10T09:32:11+08:00] [warn] model-a@api -> something is warn!
[2018-10-10T09:32:11+08:00] [error] model-a@api -> something is error!!
[2018-10-10T09:32:11+08:00] [verbose] model-a@api -> some details!!
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

1.0.1

2 years ago

1.0.0

2 years ago