# LoggerChannelRegistry

`class` in `logger` · v0.1.0-next.1

<https://docs.seedcord.org/packages/logger/0.1.0-next.1/classes/logger-channel-registry>

Process-global router for every LogRecord.

Resolves the channel and level floor at log time, then runs two layers: config sinks (replaced wholesale by `configure`) and capture sinks (installed imperatively, surviving a config replace). A `console`-kind config sink is skipped while any capture requests `muteConsole`.

```ts
class LoggerChannelRegistry
```

## Properties

### instance

```ts
public static instance: LoggerChannelRegistry
```

## Methods

### configure

```ts
public configure(config: LoggerConfig): void
```

Full-replaces the config layer. Omitted fields reset to their defaults.

### dispatch

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

### installSink

```ts
public installSink(
    sink: ILogSink,
    options?: { muteConsole?: boolean }
): LogSinkHandle
```

Installs a capture sink (the dev TUI, a remote drain). Survives a `configure` replace.
