1.5.1 • Published 2 years ago

@artcom/logger v1.5.1

Weekly downloads
32
License
MIT
Repository
github
Last release
2 years ago

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
1.5.1

2 years ago

1.5.0

2 years ago

1.4.0

2 years ago

1.3.1

2 years ago

1.3.0

2 years ago

1.2.0

3 years ago

1.1.0

3 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago