node package manager
We need your input. Help make JavaScript better: Take the 2017 JavaScript Ecosystem survey »

symfio-contrib-winston

symfio-contrib-winston

Winston plugin for Symfio.

Build Status Dependency Status

Usage

symfio = require "symfio"
 
container = symfio "example"__dirname
 
container.inject require "symfio-contrib-winston"
 
container.inject (logger) ->
  logger.info "Info message"

Configuration

loggerLevel

Default value depends on env.

loggerFile

Default value is #{name}.log.

consoleLoggerConfiguration

Console Transport configuration.

fileLoggerConfiguration

File Transport configuration.

loggerTransports

Array with transports to use. Default value depends on env.

loggerLevels

Array with levels. Default is winston.config.npm.levels.

loggerColors

Array with level colors. Default is winston.config.npm.colors.

Services

winston

Original winston module.

consoleLogger

Console Transport instance.

fileLogger

File Transport instance.

logger

Configured logger instance.