> This page is for NeMo Relay, version v0.9.4.
> For other versions, use one of these documentation indexes:
> - Latest (v0.10.0) (default): https://docs.nvidia.com/nemo/relay/latest/llms.txt
> - dev: https://docs.nvidia.com/nemo/relay/dev/llms.txt
> - v0.10.0: https://docs.nvidia.com/nemo/relay/v0.10.0/llms.txt
> - v0.9.4: https://docs.nvidia.com/nemo/relay/v0.9.4/llms.txt
> - v0.8.4: https://docs.nvidia.com/nemo/relay/v0.8.4/llms.txt
> - v0.7.3: https://docs.nvidia.com/nemo/relay/v0.7.3/llms.txt
> - v0.6.0: https://docs.nvidia.com/nemo/relay/v0.6.0/llms.txt
> - v0.5.0: https://docs.nvidia.com/nemo/relay/v0.5.0/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/nemo/relay/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.nvidia.com/nemo/relay/_mcp/server.

# Struct Logging Config

> Operational logging configuration for `LoggingRuntime::configure`.

Generated from `cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-pii-redaction -p nemo-relay-ffi -p nemo-relay-types -p nemo-relay-plugin -p nemo-relay-worker-proto -p nemo-relay-worker`.

<pre />

Operational logging configuration for [`LoggingRuntime::configure`](/reference/api/rust-library-reference/nemo-relay/logging/struct-loggingruntime).

`level` is the process-wide **minimum severity**: call sites may emit any level, but records less severe than this threshold are discarded. Per-file sinks may raise their own minimum.

## Fields

### `level: LogLevel`

Minimum severity for operational logs.

### `stderr_enabled: bool`

Whether the stderr sink is enabled.

### `stderr_format: LogFormat`

Encoding for the stderr sink when it is enabled.

### `sinks: Vec<LogSinkConfig>`

Additional file sinks beyond stderr.

### `flush_interval_millis: u64`

Periodic flush cadence in milliseconds applied to all file sinks. `0` disables periodic flush (shutdown flush only). Defaults to [`DEFAULT_FILE_FLUSH_INTERVAL_MILLIS`](/reference/api/rust-library-reference/nemo-relay/logging/constant-default-file-flush-interval-millis).

## Implementations

### `impl LoggingConfig`

<pre />

#### `from_environment`

<pre />

Resolves logging configuration from the supported process environment.

Returns `None` when no logging environment variables are present. Direct level, stderr, and stderr format settings may be combined. `NEMO_RELAY_LOG_CONFIG_PATH` selects an absolute TOML file instead and is mutually exclusive with all direct settings.

#### `from_file_path`

<pre />

Loads logging configuration from an absolute TOML file containing `[logging]`.

## Trait Implementations

### `impl Clone for LoggingConfig`

<pre />

#### `clone`

<pre />

#### `clone_from`

<pre />

### `impl Debug for LoggingConfig`

<pre />

#### `fmt`

<pre />

### `impl Default for LoggingConfig`

<pre />

#### `default`

<pre />

### `impl PartialEq for LoggingConfig`

<pre />

#### `eq`

<pre />

#### `ne`

<pre />

### `impl Eq for LoggingConfig`

<pre />

### `impl StructuralPartialEq for LoggingConfig`

<pre />