# WinstonFileSink

`class` in `logger/node` · v0.3.2

<https://docs.seedcord.org/packages/logger/0.3.2/classes/winston-file-sink>

Node file sink. One combined file for every channel, `channel` carried as a field.

```ts
class WinstonFileSink implements ILogSink
```

## Constructors

### constructor

```ts
WinstonFileSink(options?: {
    filename?: string;
    format?: SinkFormat;
    maxSize?: number;
    maxFiles?: number;
})
```

Constructs a new instance of the `WinstonFileSink` class

## Properties

### kind

```ts
public readonly kind
```

### node

```ts
public readonly node
```

## Methods

### [Symbol.dispose]

```ts
public [Symbol.dispose](): void
```

### dispose

```ts
public dispose(): void
```

### onLog

```ts
public onLog(record: LogRecord): void
```
