Show / Hide Table of Contents

    Class DefaultLogger

    Inheritance
    Object
    DefaultLogger
    Implements
    IIKLogger
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ToString()
    Object.ReferenceEquals(Object, Object)
    Namespace: IdleKit.Core
    Assembly: cs.temp.dll.dll
    Syntax
    public class DefaultLogger : IIKLogger

    Fields

    _colorTags

    Declaration
    protected bool _colorTags
    Field Value
    Type Description
    Boolean

    _currentEntry

    Declaration
    protected LogEntry _currentEntry
    Field Value
    Type Description
    LogEntry

    _defaultErrorStackType

    Declaration
    protected readonly StackTraceLogType _defaultErrorStackType
    Field Value
    Type Description
    StackTraceLogType

    _defaultLogStackType

    Declaration
    protected readonly StackTraceLogType _defaultLogStackType
    Field Value
    Type Description
    StackTraceLogType

    _defaultWarningStackType

    Declaration
    protected readonly StackTraceLogType _defaultWarningStackType
    Field Value
    Type Description
    StackTraceLogType

    _disabledCategoryIds

    Declaration
    protected readonly HashSet<string> _disabledCategoryIds
    Field Value
    Type Description
    HashSet<String>

    _history

    Declaration
    protected readonly List<LogEntry> _history
    Field Value
    Type Description
    List<LogEntry>

    _showTags

    Declaration
    protected bool _showTags
    Field Value
    Type Description
    Boolean

    _stringBuilder

    Declaration
    protected readonly StringBuilder _stringBuilder
    Field Value
    Type Description
    StringBuilder

    _throwExceptions

    Declaration
    protected bool _throwExceptions
    Field Value
    Type Description
    Boolean

    _useCustomStackTrace

    Declaration
    protected bool _useCustomStackTrace
    Field Value
    Type Description
    Boolean

    Methods

    AddToHistory(LogEntry)

    Declaration
    protected virtual void AddToHistory(LogEntry entry)
    Parameters
    Type Name Description
    LogEntry entry

    BuildCustomStackTrace()

    Declaration
    protected virtual string BuildCustomStackTrace()
    Returns
    Type Description
    String

    BuildMessage(ILogCategory, String)

    Declaration
    protected virtual string BuildMessage(ILogCategory category, string message)
    Parameters
    Type Name Description
    ILogCategory category
    String message
    Returns
    Type Description
    String

    ClearLogs(Func<LogEntry, Boolean>)

    Declaration
    public virtual void ClearLogs(Func<LogEntry, bool> clearPredicate = null)
    Parameters
    Type Name Description
    Func<LogEntry, Boolean> clearPredicate

    ConstructEntry(ILogCategory, LogSeverity, String)

    Declaration
    protected virtual LogEntry ConstructEntry(ILogCategory category, LogSeverity severity, string message)
    Parameters
    Type Name Description
    ILogCategory category
    LogSeverity severity
    String message
    Returns
    Type Description
    LogEntry

    DisableDefaultStackTrace()

    Declaration
    protected virtual void DisableDefaultStackTrace()

    GetLogs(LogSeverity, Func<LogEntry, Boolean>)

    Declaration
    public virtual List<LogEntry> GetLogs(LogSeverity severityMask, Func<LogEntry, bool> selectionPredicate = null)
    Parameters
    Type Name Description
    LogSeverity severityMask
    Func<LogEntry, Boolean> selectionPredicate
    Returns
    Type Description
    List<LogEntry>

    HandleException(Exception, ILogCategory)

    Declaration
    public virtual void HandleException(Exception exception, ILogCategory category)
    Parameters
    Type Name Description
    Exception exception
    ILogCategory category

    HandleLogMessageReceived(String, String, LogType)

    Declaration
    protected virtual void HandleLogMessageReceived(string condition, string stacktrace, LogType type)
    Parameters
    Type Name Description
    String condition
    String stacktrace
    LogType type

    IsCategoryActive(ILogCategory)

    Declaration
    public virtual bool IsCategoryActive(ILogCategory category)
    Parameters
    Type Name Description
    ILogCategory category
    Returns
    Type Description
    Boolean

    IsLogDisabled(ILogCategory, LogSeverity)

    Declaration
    protected virtual bool IsLogDisabled(ILogCategory category, LogSeverity severity)
    Parameters
    Type Name Description
    ILogCategory category
    LogSeverity severity
    Returns
    Type Description
    Boolean

    Log(LogSeverity, String, ILogCategory)

    Declaration
    public virtual void Log(LogSeverity severity, string message, ILogCategory category)
    Parameters
    Type Name Description
    LogSeverity severity
    String message
    ILogCategory category

    Log(String)

    Declaration
    protected virtual void Log(string message)
    Parameters
    Type Name Description
    String message

    LogError(String)

    Declaration
    protected virtual void LogError(string message)
    Parameters
    Type Name Description
    String message

    LogWarning(String)

    Declaration
    protected virtual void LogWarning(string message)
    Parameters
    Type Name Description
    String message

    LogWithSeverity(LogSeverity, String)

    Declaration
    protected virtual void LogWithSeverity(LogSeverity severity, string message)
    Parameters
    Type Name Description
    LogSeverity severity
    String message

    LogWithStacktrace(LogSeverity, String, String)

    Declaration
    protected virtual void LogWithStacktrace(LogSeverity severity, string message, string stackTrace)
    Parameters
    Type Name Description
    LogSeverity severity
    String message
    String stackTrace

    OutputLog(LogEntry)

    Declaration
    protected virtual void OutputLog(LogEntry entry)
    Parameters
    Type Name Description
    LogEntry entry

    ReenableDefaultStackTrace()

    Declaration
    protected virtual void ReenableDefaultStackTrace()

    ToggleCategory(ILogCategory, Boolean)

    Declaration
    public virtual void ToggleCategory(ILogCategory category, bool isActive)
    Parameters
    Type Name Description
    ILogCategory category
    Boolean isActive

    ToggleCategoryId(String, Boolean)

    Declaration
    public virtual void ToggleCategoryId(string categoryId, bool isActive)
    Parameters
    Type Name Description
    String categoryId
    Boolean isActive

    ToggleCustomStackTraces(Boolean)

    Declaration
    public virtual void ToggleCustomStackTraces(bool isActive)
    Parameters
    Type Name Description
    Boolean isActive

    ToggleTagColorsInLogs(Boolean)

    Declaration
    public virtual void ToggleTagColorsInLogs(bool colorTags)
    Parameters
    Type Name Description
    Boolean colorTags

    ToggleTagsInLogs(Boolean)

    Declaration
    public virtual void ToggleTagsInLogs(bool showTags)
    Parameters
    Type Name Description
    Boolean showTags

    ToggleThrowExceptions(Boolean)

    Declaration
    public virtual void ToggleThrowExceptions(bool throwExceptions)
    Parameters
    Type Name Description
    Boolean throwExceptions

    Events

    OnExceptionHandled

    Declaration
    public virtual event Action<Exception> OnExceptionHandled
    Event Type
    Type Description
    Action<Exception>

    OnLogReceived

    Declaration
    public virtual event Action<LogEntry> OnLogReceived
    Event Type
    Type Description
    Action<LogEntry>

    Implements

    IIKLogger
    Back to top Copyright © 2020 East Side Games Inc.