# WinstonConsoleSink

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

<https://seedcord.org/docs/packages/logger/0.5.0/classes/winston-console-sink>

Node console sink. `format` is `pretty` columns, `json` lines with the ANSI codes stripped, or `json-ansi`
lines that keep them for a tool that renders the colors.

Without a `format` it is `pretty` in development when run from a terminal, `json-ansi` in development when
piped, redirected, or under CI, and `json` in any other environment.

```ts
class WinstonConsoleSink implements ILogSink
```

## Constructors

### constructor

```ts
WinstonConsoleSink(options?: { format?: SinkFormat })
```

Constructs a new instance of the `WinstonConsoleSink` class

## Properties

### kind

```ts
public readonly kind
```

### node

```ts
public readonly node
```

## Methods

### onLog

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