Search Results for

    Show / Hide Table of Contents

    Class AppLog

    Logging class which applies a verbosity filter to all logs which are produced with it

    Inheritance
    object
    AppLog
    Namespace: i5.Toolkit.Core.VerboseLogging
    Assembly: cs.temp.dll.dll
    Syntax
    public static class AppLog

    Properties

    CriticalColor

    The color which should be applied to critical log messags if UseColors is true

    Declaration
    public static Color CriticalColor { get; set; }
    Property Value
    Type Description
    Color

    DebugColor

    The color which should be applied to debug log messags if UseColors is true

    Declaration
    public static Color DebugColor { get; set; }
    Property Value
    Type Description
    Color

    ErrorColor

    The color which should be applied to error log messags if UseColors is true

    Declaration
    public static Color ErrorColor { get; set; }
    Property Value
    Type Description
    Color

    InfoColor

    The color which should be applied to info log messags if UseColors is true

    Declaration
    public static Color InfoColor { get; set; }
    Property Value
    Type Description
    Color

    MinimumLogLevel

    The minimum importance level of logs which will be ouput. All logs with a lower importance level are ignored.

    Declaration
    public static LogLevel MinimumLogLevel { get; set; }
    Property Value
    Type Description
    LogLevel

    TraceColor

    The color which should be applied to trace log messags if UseColors is true

    Declaration
    public static Color TraceColor { get; set; }
    Property Value
    Type Description
    Color

    UseColors

    If true, the module will style messages in the editor with colors

    Declaration
    public static bool UseColors { get; set; }
    Property Value
    Type Description
    bool

    WarningColor

    The color which should be applied to warning log messags if UseColors is true

    Declaration
    public static Color WarningColor { get; set; }
    Property Value
    Type Description
    Color

    Methods

    Log(string, LogLevel, Object)

    Logs a message with a given level

    Declaration
    public static void Log(string message, LogLevel level, Object context = null)
    Parameters
    Type Name Description
    string message

    The message to log

    LogLevel level

    The importance level of the message

    Object context

    The Unity Object context which sends the message

    Log(string, LogLevel, object)

    Logs a message with a given level

    Declaration
    public static void Log(string message, LogLevel level, object context)
    Parameters
    Type Name Description
    string message

    The message to log

    LogLevel level

    The importance level of the message

    object context

    The object context which sends the message

    LogCritical(string, Object)

    Logs a critical error message

    Declaration
    public static void LogCritical(string message, Object context = null)
    Parameters
    Type Name Description
    string message

    The message to log

    Object context

    The context of the message

    LogCritical(string, object)

    Logs a critical error message

    Declaration
    public static void LogCritical(string message, object context)
    Parameters
    Type Name Description
    string message

    The message to log

    object context

    The context of the message

    LogDebug(string, Object)

    Logs a message for debugging the code

    Declaration
    public static void LogDebug(string message, Object context = null)
    Parameters
    Type Name Description
    string message

    The message to log

    Object context

    The context of the message

    LogDebug(string, object)

    Logs a message for debugging the code

    Declaration
    public static void LogDebug(string message, object context)
    Parameters
    Type Name Description
    string message

    The message to log

    object context

    The context of the message

    LogError(string, Object)

    Logs an error message

    Declaration
    public static void LogError(string message, Object context = null)
    Parameters
    Type Name Description
    string message

    The message to log

    Object context

    The context of the message

    LogError(string, object)

    Logs an error message

    Declaration
    public static void LogError(string message, object context)
    Parameters
    Type Name Description
    string message

    The message to log

    object context

    The context of the message

    LogException(Exception, bool, Object)

    Logs an exception either as an error message or a critical error message

    Declaration
    public static void LogException(Exception e, bool isCritical = false, Object context = null)
    Parameters
    Type Name Description
    Exception e

    The exception which should be logged

    bool isCritical

    If set to true, the message will be logged as a critical error

    Object context

    The context of the message

    LogException(Exception, bool, object)

    Logs an exception either as an error message or a critical error message

    Declaration
    public static void LogException(Exception e, bool isCritical, object context)
    Parameters
    Type Name Description
    Exception e

    The exception which should be logged

    bool isCritical

    If set to true, the message will be logged as a critical error

    object context

    The context of the message

    LogInfo(string, Object)

    Logs an info message

    Declaration
    public static void LogInfo(string message, Object context = null)
    Parameters
    Type Name Description
    string message

    The message to log

    Object context

    The context of the message

    LogInfo(string, object)

    Logs an info message

    Declaration
    public static void LogInfo(string message, object context)
    Parameters
    Type Name Description
    string message

    The message to log

    object context

    The context of the message

    LogTrace(string, Object)

    Logs a message which can be used to trace the code execution path

    Declaration
    public static void LogTrace(string message, Object context = null)
    Parameters
    Type Name Description
    string message

    The message to log

    Object context

    The context of the message

    LogTrace(string, object)

    Logs a message which can be used to trace the code execution path

    Declaration
    public static void LogTrace(string message, object context)
    Parameters
    Type Name Description
    string message

    The message to log

    object context

    The context of the message

    LogWarning(string, Object)

    Logs a warning message

    Declaration
    public static void LogWarning(string message, Object context = null)
    Parameters
    Type Name Description
    string message

    The message to log

    Object context

    The context of the message

    LogWarning(string, object)

    Logs a warning message

    Declaration
    public static void LogWarning(string message, object context)
    Parameters
    Type Name Description
    string message

    The message to log

    object context

    The context of the message

    In this article
    Back to top i5 Toolkit Documentation