Table of Contents

Class LoggingSettings

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

Represents the settings for logging.

public sealed class LoggingSettings : IEquatable<LoggingSettings>
Inheritance
LoggingSettings
Implements
Inherited Members

Constructors

LoggingSettings(ILoggerFactory, Optional<int>)

Initializes a new instance of the LoggingSettings class.

[CLSCompliant(false)]
public LoggingSettings(ILoggerFactory loggerFactory = null, Optional<int> maxDocumentSize = default)

Parameters

loggerFactory ILoggerFactory

The logger factory.

maxDocumentSize Optional<int>

The maximum document size in chars.

Properties

LoggerFactory

Gets the logger factory.

[CLSCompliant(false)]
public ILoggerFactory LoggerFactory { get; }

Property Value

ILoggerFactory

MaxDocumentSize

Gets the maximum document size in chars

public int MaxDocumentSize { get; }

Property Value

int

Methods

Equals(LoggingSettings)

Determines whether the specified LoggingSettings is equal to this instance.

public bool Equals(LoggingSettings rhs)

Parameters

rhs LoggingSettings

The LoggingSettings to compare with this instance.

Returns

bool

true if the specified LoggingSettings is equal to this instance; otherwise, false.

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

Operators

operator ==(LoggingSettings, LoggingSettings)

Determines whether two LoggingSettings instances are equal.

public static bool operator ==(LoggingSettings lhs, LoggingSettings rhs)

Parameters

lhs LoggingSettings

The LHS.

rhs LoggingSettings

The RHS.

Returns

bool

true if the left hand side is equal to the right hand side; otherwise, false.

operator !=(LoggingSettings, LoggingSettings)

Determines whether two LoggingSettings instances are not equal.

public static bool operator !=(LoggingSettings lhs, LoggingSettings rhs)

Parameters

lhs LoggingSettings

The LHS.

rhs LoggingSettings

The RHS.

Returns

bool

true if the left hand side is not equal to the right hand side; otherwise, false.