Class NullModbusLogger
Empty logger.
Inheritance
System.Object
NullModbusLogger
Implements
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: NModbus.Logging
Assembly: NModbus.dll
Syntax
public class NullModbusLogger : IModbusLogger
Fields
| Improve this Doc View SourceInstance
Singleton.
Declaration
public static NullModbusLogger Instance
Field Value
Type | Description |
---|---|
NullModbusLogger |
Methods
| Improve this Doc View SourceLog(LoggingLevel, String)
This won't do anything.
Declaration
public void Log(LoggingLevel level, string message)
Parameters
Type | Name | Description |
---|---|---|
LoggingLevel | level | |
System.String | message |
ShouldLog(LoggingLevel)
Always returnsa false
Declaration
public bool ShouldLog(LoggingLevel level)
Parameters
Type | Name | Description |
---|---|---|
LoggingLevel | level |
Returns
Type | Description |
---|---|
System.Boolean |