# ILogSink

`interface` in `types` · v0.16.2

<https://seedcord.org/docs/packages/types/0.16.2/interfaces/ilog-sink>

A destination for log records.

```ts
interface ILogSink
```

## Properties

### kind

```ts
readonly kind: LogSinkKind
```

A `'console'` sink stops getting records while a capture sink that mutes the console is installed,
like the dev terminal's. `'file'` and `'capture'` sinks keep getting them.

## Methods

### dispose

```ts
dispose?(): void
```

Runs when a later logger config leaves this sink out. Close a file handle or a connection here.

### onLog

```ts
onLog(record: LogRecord): unknown
```

Can be async. seedcord doesn't await it, and an edge bot keeps the request open until it finishes.
