mta-logger 3.0.0-canary.3
Install from the command line:
Learn more about npm packages
$ npm install @nayotta/mta-logger@3.0.0-canary.3
Install via package.json:
"@nayotta/mta-logger": "3.0.0-canary.3"
About this version
A simple typescript/javascript logger module.
$ npm install @nayotta/mta-logger --save
import { Logger } from '@nayotta/mta-logger'
const logger = new Logger({
level: 'debug',
colorful: true
}).withFields({
'#instance': 'app',
'#method': 'init'
})
logger.info('app start on port', 8080)
// print
// INFO[2021-10-13T15:20:19:042] app start on port 8080 #instance=app #method=init
Details
- mta-logger
- nayotta
- almost 2 years ago
- MIT
- 12 dependencies
Assets
- mta-logger-3.0.0-canary.3.tgz
Download activity
- Total downloads 1
- Last 30 days 0
- Last week 0
- Today 0