Show / Hide Table of Contents

    Interface IPriorityLogger

    An interface used within IdleKit used to log information, warnings, errors and exceptions. A system of priorities is used to determine when and how messages are logged.

    The IPriorityLogger implementation should be registered with and called via the static IdleKitLog.

    Namespace: IdleKit.Logging
    Assembly: cs.temp.dll.dll
    Syntax
    public interface IPriorityLogger

    Methods

    Log(Object)

    Logs out a message.

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

    LogError(Object)

    Logs out an error.

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

    LogException(Exception)

    Logs an exception. May throw the exception depending on implementation.

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

    LogWarning(Object)

    Logs out a warning.

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

    LogWithPriority(Object, Int32)

    Logs out a message with different behavior depending on the specified priority.

    Declaration
    void LogWithPriority(object message, int priority)
    Parameters
    Type Name Description
    Object message
    Int32 priority

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

    SetMinPriority(Int32)

    Sets the minimum priority that a log message must have in order to be logged out.

    Declaration
    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.