@platoai/log

1.0.5 • Public • Published

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"});

/@platoai/log/

    Package Sidebar

    Install

    npm i @platoai/log

    Weekly Downloads

    1

    Version

    1.0.5

    License

    MIT

    Last publish

    Collaborators

    • mwilliammyers