OpenTelemetry.SelfDiagnostics.SelfDiagnosticsOptions
Options for configuring SDK self-diagnostics logging.
Gets or sets how much of the OTEL_* environment variable snapshot is written to
the log file preamble. Defaults to KnownSafeValues,
which lists every variable name but redacts the value of any variable the SDK does not
recognise as safe to disclose. Only applies when file logging is enabled.
Gets or sets the size in kilobytes at which the current log file is closed and a new one
is started. Defaults to 10240 (10 MiB). A value less than or equal to zero disables
size-based rollover.
Gets or sets the folder where self-diagnostics log files are written. Setting a non-empty
value enables file logging. Defaults to null (no file logging).
Gets or sets a value indicating whether SDK diagnostics are written to standard error.
Gets or sets a value indicating whether SDK diagnostics are written to standard output.
Gets or sets the maximum number of log files to keep. When a new file is started, the
oldest files are deleted to stay within this limit. Defaults to 10. A value less than
or equal to zero keeps all files.
Gets or sets the minimum log level. Events below this level are discarded, and
None disables logging. Defaults to Warning.
public SelfDiagnosticsOptions()
Initializes a new instance of the SelfDiagnosticsOptions class.
Gets the standard per-user folder for self-diagnostics log files on the current platform.