Skip to content

maxdome/mxd-logging

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Example

const logging = require('mxd-logging')(config);
const appLogger = logging('app');

Config

Environment Variables

If environment variables are set, the config object will be ignored!

  • MXD_LOGGING_FILENAME: The path for the logfile
  • MXD_LOGGING_LEVEL: The loglevel (optional, default: 'info')

'config' Object

For available types and their options, see: https://github.com/winstonjs/winston/blob/master/docs/transports.md

{
  "logging": {
    "transports": [
      { 
        "type": "",
        "options": {}
      }
    ]
  }
}

About

Returns configured winston logger instances

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published