mta-logger 1.1.0
Install from the command line:
Learn more about npm packages
$ npm install @nayotta/mta-logger@1.1.0
Install via package.json:
"@nayotta/mta-logger": "1.1.0"
About this version
A javascript logger module.
import { Logger } from '@nayotta/mta-logger'
const logger = new Logger({
level: 'all'
})
logger.info('init app', 'app start on port', 8080)
// print
// [info] 2021-10-13T15:20:19:042 [init app] app start on port 8080
import { Logger } from '@nayotta/mta-logger'
const logger = new Logger({
level: 'all',
position: 'func_name'
})
logger.info('running by port', 8080)
// print
// [info] 2021-10-13T15:20:19:042 [func_name] running by port 8080
Details
- mta-logger
- nayotta
- almost 3 years ago
- MIT
- 13 dependencies
Assets
- mta-logger-1.1.0-npm.tgz
Download activity
- Total downloads 1
- Last 30 days 0
- Last week 0
- Today 0