1.0.1 • Published 4 years ago

@artossystems/create-logger v1.0.1

Weekly downloads
3
License
ISC
Repository
-
Last release
4 years ago

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')