Class NullLogger
Provides a ISsdpLogger implementation that does nothing, effectively disabling logging. Use the Instance property to obtain an instance as the constructor is private.
Inheritance
System.Object
NullLogger
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: Rssdp
Assembly: cs.temp.dll.dll
Syntax
public class NullLogger : ISsdpLogger
Remarks
This logger is inherently thread-safe and the Instance value can be shared among multiple components.
Properties
Instance
Provides a single instance of NullLogger.
Declaration
public static ISsdpLogger Instance { get; }
Property Value
| Type | Description |
|---|---|
| ISsdpLogger |
Methods
LogError(String)
Does nothing.
Declaration
public void LogError(string message)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | message | Unused as this implementation does not log. |
LogInfo(String)
Does nothing.
Declaration
public void LogInfo(string message)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | message | Unused as this implementation does not log. |
LogVerbose(String)
Does nothing.
Declaration
public void LogVerbose(string message)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | message | Unused as this implementation does not log. |
LogWarning(String)
Does nothing.
Declaration
public void LogWarning(string message)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | message | Unused as this implementation does not log. |