Class NoOpLogger
NoOpLogger is an implementation of IMySqlConnectorLogger that does nothing.
Inheritance
System.Object
NoOpLogger
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: MySqlConnector.Logging
Assembly: Azos.MySql.dll
Syntax
public sealed class NoOpLogger : IMySqlConnectorLogger
Remarks
This is the default logging implementation unless Provider is set.
Properties
Instance
Returns a singleton instance of NoOpLogger.
Declaration
public static IMySqlConnectorLogger Instance { get; }
Property Value
Type | Description |
---|---|
IMySqlConnectorLogger |
Methods
IsEnabled(MySqlConnectorLogLevel)
Returns false
.
Declaration
public bool IsEnabled(MySqlConnectorLogLevel level)
Parameters
Type | Name | Description |
---|---|---|
MySqlConnectorLogLevel | level |
Returns
Type | Description |
---|---|
System.Boolean |
Log(MySqlConnectorLogLevel, String, Object[], Exception)
Ignores the specified log message.
Declaration
public void Log(MySqlConnectorLogLevel level, string message, object[] args = null, Exception exception = null)
Parameters
Type | Name | Description |
---|---|---|
MySqlConnectorLogLevel | level | |
System.String | message | |
System.Object[] | args | |
System.Exception | exception |