Table of Contents

Class SdamLoggingSettings

Namespace
MongoDB.Driver.Core.Configuration
Assembly
MongoDB.Driver.Core.dll

Represents settings for SDAM logging.

[Obsolete("Use MongoClientSettings.LoggerFactory instead.")]
public class SdamLoggingSettings
Inheritance
SdamLoggingSettings
Inherited Members

Constructors

SdamLoggingSettings(Optional<string>)

Initializes a new instance of the SdamLoggingSettings class.

public SdamLoggingSettings(Optional<string> logFilename = default)

Parameters

logFilename Optional<string>

The filename to log to. An empty string or null will disable logging. "stdout" sneds output to stdout.

Properties

LogFilename

The filename to log to.

public string LogFilename { get; }

Property Value

string

Methods

With(Optional<string>)

Returns a new SdamLoggingSettings instance with some settings changed.

public SdamLoggingSettings With(Optional<string> logFilename = default)

Parameters

logFilename Optional<string>

The filename.

Returns

SdamLoggingSettings

A new SdamLoggingSettings instance.