Skip to content

Logging

Mauro Gadaleta edited this page Jun 6, 2017 · 1 revision

Logging dependency injection messages

By default, we are using console.warn to output some information messages like deprecations.

You can override our default logger and use your desired logger service.

import winston from 'winston'

let container = new ContainerBuilder()
container.logger = winston

Example made with WinstonJS but feel free to use your desired logger library or your own logger service

Your logger instance MUST implement warn method