Nanometer Process Machine
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    architect-loggerpublic

    architect-logger

    This plugin uses winston as a logging backend

    Config Format

    {
      "packagePath": "./node_modules/architect-logger",
      "exitOnError": false,
      "transports": {
        "console": {
          "colorize": true,
          "level": "verbose"
        },
        "file": {
          "filename": "./logs/errors.log",
          "level": "warn"
        }
      }
    }

    Usage

    Let's use that puppy in our plugin

    module.exports = function (options, imports, register) {
     
      var log = imports.logger;
     
      logger.info("Hello!");
      logger.warn("Uh oh! There's an error coming...");
      logger.error("We're going down");
     
    };

    TODO

    • Support for multiple categories

    Keywords

    none

    install

    npm i architect-logger

    Downloadsweekly downloads

    22

    version

    0.0.1

    license

    none

    repository

    githubgithub

    last publish

    collaborators

    • avatar