@artossystems/create-logger
v1.0.1
Published
This library allows a fully functional logger that works on both the server and the client to be created and used in an application.
Downloads
15
Keywords
Readme
Create Logger
This library allows a fully functional logger that works on both the server and the client to be created and used in an application.
The logger logs to the standard output and error streams.
Installation
npm install @artossystems/create-logger
Usage
const createLogger = require('@artossystems/create-logger')
const logger = createLogger({
useColor: true,
level: 'info'
}).child({ obj: 'my identitifier' })
logger.info('Message to log')