Show / Hide Table of Contents

Class NullModbusLogger

Empty logger.

Inheritance
System.Object
NullModbusLogger
Implements
IModbusLogger
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 Source

Instance

Singleton.

Declaration
public static NullModbusLogger Instance
Field Value
Type Description
NullModbusLogger

Methods

| Improve this Doc View Source

Log(LoggingLevel, String)

This won't do anything.

Declaration
public void Log(LoggingLevel level, string message)
Parameters
Type Name Description
LoggingLevel level
System.String message
| Improve this Doc View Source

ShouldLog(LoggingLevel)

Always returnsa false

Declaration
public bool ShouldLog(LoggingLevel level)
Parameters
Type Name Description
LoggingLevel level
Returns
Type Description
System.Boolean

Implements

IModbusLogger

Extension Methods

LoggingExtensions.Trace(IModbusLogger, String)
LoggingExtensions.Debug(IModbusLogger, String)
LoggingExtensions.Information(IModbusLogger, String)
LoggingExtensions.Warning(IModbusLogger, String)
LoggingExtensions.Error(IModbusLogger, String)
LoggingExtensions.Critical(IModbusLogger, String)
LoggingExtensions.Log(IModbusLogger, LoggingLevel, Func<String>)
LoggingExtensions.Trace(IModbusLogger, Func<String>)
LoggingExtensions.Debug(IModbusLogger, Func<String>)
LoggingExtensions.Information(IModbusLogger, Func<String>)
LoggingExtensions.Warning(IModbusLogger, Func<String>)
LoggingExtensions.Error(IModbusLogger, Func<String>)
LoggingExtensions.Critical(IModbusLogger, Func<String>)
  • Improve this Doc
  • View Source
Back to top Copyright © 2015-2017 Microsoft
Generated by DocFX