Show / Hide Table of Contents

Class CosmosFileLogSinkOptions

Configuration options for FileCosmosQueryLogSink.

Inheritance
object
CosmosFileLogSinkOptions
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Benday.CosmosDb.Diagnostics
Assembly: Benday.CosmosDb.dll
Syntax
public sealed class CosmosFileLogSinkOptions

Fields

| Edit this page View Source

DefaultDirectoryName

Default subdirectory (under BaseDirectory) used when FilePath is not set.

Declaration
public const string DefaultDirectoryName = "logs"
Field Value
Type Description
string
| Edit this page View Source

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 Source

FilePath

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
| Edit this page View Source

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 Source

GetDefaultFilePath()

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
  • Edit this page
  • View Source
In this article
Back to top Copyright © www.benday.com | info@benday.com