Class NoOpLogger
No
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: NFX.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 No
Declaration
public static IMySqlConnectorLogger Instance { get; }
Property Value
Type | Description |
---|---|
IMy |
Methods
IsEnabled(MySqlConnectorLogLevel)
Returns false
.
Declaration
public bool IsEnabled(MySqlConnectorLogLevel level)
Parameters
Type | Name | Description |
---|---|---|
My |
level |
Returns
Type | Description |
---|---|
System. |
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 |
---|---|---|
My |
level | |
System. |
message | |
System. |
args | |
System. |
exception |