Class CosmosFileLogSinkOptions
Configuration options for FileCosmosQueryLogSink.
Inherited Members
Namespace: Benday.CosmosDb.Diagnostics
Assembly: Benday.CosmosDb.dll
Syntax
public sealed class CosmosFileLogSinkOptions
Fields
| Edit this page View SourceDefaultDirectoryName
Default subdirectory (under BaseDirectory) used when FilePath is not set.
Declaration
public const string DefaultDirectoryName = "logs"
Field Value
| Type | Description |
|---|---|
| string |
DefaultFileName
Default file name used when FilePath is not set. Resolved relative to BaseDirectory.
Declaration
public const string DefaultFileName = "cosmos-queries.ndjson"
Field Value
| Type | Description |
|---|---|
| string |
Properties
| Edit this page View SourceFilePath
Absolute or relative path to the NDJSON log file. The directory will be created if it does not already exist. When null or empty, falls back to GetDefaultFilePath().
Declaration
public string? FilePath { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
QueueCapacity
Maximum number of diagnostics events that can be queued awaiting background write. When the queue is full, additional events are dropped and counted against DroppedCount. Defaults to 10,000.
Declaration
public int QueueCapacity { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
Methods
| Edit this page View SourceGetDefaultFilePath()
Resolves the default output path:
{AppContext.BaseDirectory}/logs/cosmos-queries.ndjson.
The directory is created on first write if it does not exist.
Declaration
public static string GetDefaultFilePath()
Returns
| Type | Description |
|---|---|
| string |