Show / Hide Table of Contents

    Class IdleKitLog

    A static class which wraps a IPriorityLogger implementation to provide global logging functionality.

    The logging behavior can be customized by providing a different IPriorityLogger implementation via the RegisterLogger(IPriorityLogger) method. The default implementation of IContext will provide the IdleKitLog with a DebugLogger or DevelopmentLogger depending on the build configuration.

    Inheritance
    Object
    IdleKitLog
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ToString()
    Object.ReferenceEquals(Object, Object)
    Namespace: IdleKit.Logging
    Assembly: cs.temp.dll.dll
    Syntax
    public static class IdleKitLog
    Remarks

    See the IContext implementation in idlekit-implementation to see how the IPriorityLogger implementation is bound and retrieved from the IDependencyContainer.

    Properties

    logger

    Declaration
    public static IPriorityLogger logger { get; }
    Property Value
    Type Description
    IPriorityLogger

    Methods

    Cleanup()

    Declaration
    public static void Cleanup()

    Log(Object)

    Declaration
    public static void Log(object message)
    Parameters
    Type Name Description
    Object message

    LogError(Object)

    Declaration
    public static void LogError(object message)
    Parameters
    Type Name Description
    Object message

    LogException(Exception)

    Declaration
    public static void LogException(Exception exception)
    Parameters
    Type Name Description
    Exception exception

    LogWarning(Object)

    Declaration
    public static void LogWarning(object message)
    Parameters
    Type Name Description
    Object message

    RegisterLogger(IPriorityLogger)

    Declaration
    public static void RegisterLogger(IPriorityLogger logger)
    Parameters
    Type Name Description
    IPriorityLogger logger

    SetMinPriority(Int32)

    Sets the minimum priority value. Messages logged with a lower priority value than this will be ignored by the logger.

    Declaration
    public static void SetMinPriority(int priority)
    Parameters
    Type Name Description
    Int32 priority

    A priority value that should be specified via the LoggerPriority presets.

    Back to top Copyright © 2020 East Side Games Inc.