Class SsdpTraceLogger
Implementation of ISsdpLogger that writes to the .Net tracing system on platforms that support it, or System.Diagnostics.Debug on those that don't.
Inheritance
System.Object
SsdpTraceLogger
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 SsdpTraceLogger : ISsdpLogger
Remarks
On platforms that only support System.Diagnostics.Debug no log entries will be output unless running a debug build, and this effectively becomes a null logger for release builds.
Methods
LogError(String)
Records a message that represents an error.
Declaration
public void LogError(string message)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | message | The text to be logged. |
LogInfo(String)
Records a regular log message.
Declaration
public void LogInfo(string message)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | message | The text to be logged. |
LogVerbose(String)
Records a frequent or large log message usually only required when trying to trace a problem.
Declaration
public void LogVerbose(string message)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | message | The text to be logged. |
LogWarning(String)
Records an important message, but one that may not neccesarily be an error.
Declaration
public void LogWarning(string message)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | message | The text to be logged. |