Skip to content

nujii/architect-logger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Winston plugin for Architect

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published