symfio-contrib-winston
Winston plugin for Symfio.
Usage
symfio = require "symfio" container = symfio "example"__dirname containerinject require "symfio-contrib-winston" containerinject loggerinfo "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.