Interface IModbusLogger
Simple logging target. Designed to be easily integrated into other logging frameworks.
Namespace: NModbus
Assembly: NModbus.dll
Syntax
public interface IModbusLogger
Methods
| Improve this Doc View SourceLog(LoggingLevel, String)
Conditionally log a message
Declaration
void Log(LoggingLevel level, string message)
Parameters
Type | Name | Description |
---|---|---|
LoggingLevel | level | |
System.String | message |
ShouldLog(LoggingLevel)
True if this level should be logged, false otherwise.
Declaration
bool ShouldLog(LoggingLevel level)
Parameters
Type | Name | Description |
---|---|---|
LoggingLevel | level |
Returns
Type | Description |
---|---|
System.Boolean |