> 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_format: LogFormat`

Encoding for the always-on stderr sink.

### `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 and stderr format settings may be combined. `NEMO_RELAY_LOG_CONFIG_PATH` selects an absolute TOML file instead and is mutually exclusive with both 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 />