1.0.5 • Published 7 years ago

@platoai/log v1.0.5

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

platoai-log

npm version

Custom Winston logger format used by Plato AI.

installation

npm i -S @platoai/log

usage

Optionally export the following shell environment variables:

  • PLATOAI_LOG_LEVEL, to: error, warn, info, verbose, debug, or silly (defaults to: info)
  • PLATOAI_LOG_IS_JSON, to: true or false (defaults to: false)
const logger = require('@platoai/log');

and then use it like winston:

log.info("Hello, world.");
// logs: `info: [greeter] Hello, world.`
log.info("Hello, world.", {prefix: "greeter"});
1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago