---
lang: en
title: 'API docs: extension-logging.winstonloggerprovider._constructor_'
keywords: LoopBack 4.0, LoopBack 4
sidebar: lb4_sidebar
editurl: https://github.com/strongloop/loopback-next/tree/master/extensions/logging
permalink: /doc/en/lb4/apidocs.extension-logging.winstonloggerprovider._constructor_.html
---

<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@loopback/extension-logging](./extension-logging.md) &gt; [WinstonLoggerProvider](./extension-logging.winstonloggerprovider.md) &gt; [(constructor)](./extension-logging.winstonloggerprovider._constructor_.md)

## WinstonLoggerProvider.(constructor)

Constructs a new instance of the `WinstonLoggerProvider` class

<b>Signature:</b>

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

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  transports | [Getter](./context.getter.md)<!-- -->&lt;Transport\[\]&gt; |  |
|  formats | [Getter](./context.getter.md)<!-- -->&lt;Format\[\]&gt; |  |
|  options | LoggerOptions |  |


