@artossystems/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.

Usage no npm install needed!

<script type="module">
  import artossystemsCreateLogger from 'https://cdn.skypack.dev/@artossystems/create-logger';
</script>

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