symfio-contrib-winston

Winston plugin for Symfio.

npm install symfio-contrib-winston
12 downloads in the last week
49 downloads in the last month

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.

npm loves you