1.0.5 • Published 8 years ago

@platoai/log v1.0.5

Weekly downloads
1
License
MIT
Repository
github
Last release
8 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

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago