@artcom/logger
TypeScript icon, indicating that this package has built-in type declarations

1.6.0 • Public • Published

Logger

A Winston logger which logs to JSON with ordered keys and error stack support.

Usage

Install this library via npm:

npm install @artcom/logger

Use as follows:

const { createLogger } = require("@artcom/logger");
const logger = createLogger();

logger.info("Hello world!");

Additional options are supported:

  • transports: is the array of transports managed by Winston
  • keyOrder is the array specifying the order of message keys (e.g. ["timestamp", "level", "message"]), additional keys are placed after these keys by insertion order

Readme

Keywords

Package Sidebar

Install

npm i @artcom/logger

Weekly Downloads

9

Version

1.6.0

License

MIT

Unpacked Size

9.62 kB

Total Files

9

Last publish

Collaborators

  • d-lin
  • j-era
  • becks-artcom
  • utileetdulce