Unosquare
    Show / Hide Table of Contents

    Class DebugLogger

    Represents a logger target. This target will write to the Debug console using System.Diagnostics.Debug.

    Inheritance
    Object
    TextLogger
    DebugLogger
    Implements
    ILogger
    IDisposable
    Inherited Members
    TextLogger.LoggingTimeFormat
    TextLogger.GetOutputAndColor(LogMessageReceivedEventArgs)
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    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

    true if this instance is debugger attached; otherwise, false.

    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.

    Implements

    ILogger
    System.IDisposable

    See Also

    ILogger

    Comments

    Back to top Copyright © 2017-2019 Unosquare