symfio-contrib-winston

2.0.8 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i symfio-contrib-winston

Weekly Downloads

1

Version

2.0.8

License

none

Last publish

Collaborators

  • rithis