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
ILoggerFactoryThe 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
MaxDocumentSize
Gets the maximum document size in chars
public int MaxDocumentSize { get; }
Property Value
Methods
Equals(LoggingSettings)
Determines whether the specified LoggingSettings is equal to this instance.
public bool Equals(LoggingSettings rhs)
Parameters
rhs
LoggingSettingsThe 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
GetHashCode()
public override int GetHashCode()
Returns
Operators
operator ==(LoggingSettings, LoggingSettings)
Determines whether two LoggingSettings instances are equal.
public static bool operator ==(LoggingSettings lhs, LoggingSettings rhs)
Parameters
lhs
LoggingSettingsThe LHS.
rhs
LoggingSettingsThe 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
LoggingSettingsThe LHS.
rhs
LoggingSettingsThe RHS.
Returns
- bool
true
if the left hand side is not equal to the right hand side; otherwise,false
.