mxd-logging

1.1.0 • Public • Published

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: {} 
      }
    ]
  }
}

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.0
    3
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.1.0
    3
  • 1.0.2
    0
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i mxd-logging

Weekly Downloads

3

Version

1.1.0

License

none

Last publish

Collaborators

  • dragonnodejs
  • sharaal
  • fabsrc
  • markusz
  • mxdbv
  • csaba.lorincz
  • goexrock
  • dimified