Page Contents

Home > @loopback/extension-logging > WinstonLoggerProvider > (constructor)

WinstonLoggerProvider.(constructor)

Constructs a new instance of the WinstonLoggerProvider class

Signature:

constructor(
    transports: Getter<Transport[]>, 
    formats: Getter<Format[]>, 
    options?: LoggerOptions);

Parameters

Parameter Type Description
transports Getter<Transport[]>  
formats Getter<Format[]>  
options LoggerOptions