Class DebugLogger
Represents a logger target. This target will write to the Debug console using System.Diagnostics.Debug.
Inherited Members
Namespace: Swan.Logging
Syntax
public class DebugLogger : TextLogger, ILogger, IDisposable
Constructors
DebugLogger()
Initializes a new instance of the DebugLogger class.
Declaration
protected DebugLogger()
Properties
Instance
Gets the current instance of DebugLogger.
Declaration
public static DebugLogger Instance { get; }
Property Value
Type | Description |
---|---|
DebugLogger | The instance. |
IsDebuggerAttached
Gets a value indicating whether a debugger is attached.
Declaration
public static bool IsDebuggerAttached { get; }
Property Value
Type | Description |
---|---|
Boolean |
|
LogLevel
Gets the log level.
Declaration
public LogLevel LogLevel { get; set; }
Property Value
Type | Description |
---|---|
LogLevel | The log level. |
Methods
Dispose()
Declaration
public void Dispose()
Log(LogMessageReceivedEventArgs)
Logs the specified log event.
Declaration
public void Log(LogMessageReceivedEventArgs logEvent)
Parameters
Type | Name | Description |
---|---|---|
LogMessageReceivedEventArgs | logEvent | The LogMessageReceivedEventArgs instance containing the event data. |