Show / Hide Table of Contents

    Interface ILog

    Implement this interface to create a custom logger.

    Namespace: Crosser.EdgeNode.Common.Utilities.Logger.ILog
    Assembly: Crosser.EdgeNode.Common.dll
    Syntax
    public interface ILog

    Methods

    Debug(Exception, String, Object[])

    Log to the underlying logger using the debug level

    Declaration
    void Debug(Exception ex, string template, params object[] parmeters)
    Parameters
    System.Exception ex

    Exception

    System.String template

    Log template

    System.Object[] parmeters

    Parameters to apply to template

    Debug(String, Object[])

    Log to the underlying logger using the debug level

    Declaration
    void Debug(string template, params object[] parmeters)
    Parameters
    System.String template

    Log template

    System.Object[] parmeters

    Parameters to apply to template

    Error(Exception, String, Object[])

    Log to the underlying logger using the error level

    Declaration
    void Error(Exception ex, string template, params object[] parmeters)
    Parameters
    System.Exception ex

    Exception

    System.String template

    Log template

    System.Object[] parmeters

    Parameters to apply to template

    Error(String, Object[])

    Log to the underlying logger using the error level

    Declaration
    void Error(string template, params object[] parmeters)
    Parameters
    System.String template

    Log template

    System.Object[] parmeters

    Parameters to apply to template

    Fatal(Exception, String, Object[])

    Log to the underlying logger using the fatal level

    Declaration
    void Fatal(Exception ex, string template, params object[] parmeters)
    Parameters
    System.Exception ex

    Exception

    System.String template

    Log template

    System.Object[] parmeters

    Parameters to apply to template

    Fatal(String, Object[])

    Log to the underlying logger using the fatal level

    Declaration
    void Fatal(string template, params object[] parmeters)
    Parameters
    System.String template

    Log template

    System.Object[] parmeters

    Parameters to apply to template

    GetLogEventLevel()

    Returns the LogEventLevel of the ILog

    Declaration
    LogEventLevel GetLogEventLevel()
    Returns
    LogEventLevel

    Current LogEventLevel

    Information(Exception, String, Object[])

    Log to the underlying logger using the information level

    Declaration
    void Information(Exception ex, string template, params object[] parmeters)
    Parameters
    System.Exception ex

    Exception

    System.String template

    Log template

    System.Object[] parmeters

    Parameters to apply to template

    Information(String, Object[])

    Log to the underlying logger using the information level

    Declaration
    void Information(string template, params object[] parmeters)
    Parameters
    System.String template

    Log template

    System.Object[] parmeters

    Parameters to apply to template

    LevelEnabled(LogEventLevel)

    Check if the LogEventLevel is enabled

    Declaration
    bool LevelEnabled(LogEventLevel level)
    Parameters
    LogEventLevel level

    Level to check

    Returns
    System.Boolean

    True if the LogEventLevel is enabled

    SetLogEventLevel(LogEventLevel)

    Sets the loggers LogEventLevel

    Declaration
    void SetLogEventLevel(LogEventLevel level)
    Parameters
    LogEventLevel level

    The LogEventLevel to set

    Verbose(Exception, String, Object[])

    Log to the underlying logger using the verbose level

    Declaration
    void Verbose(Exception ex, string template, params object[] parmeters)
    Parameters
    System.Exception ex

    Exception

    System.String template

    Log template

    System.Object[] parmeters

    Parameters to apply to template

    Verbose(String, Object[])

    Log to the underlying logger using the verbose level

    Declaration
    void Verbose(string template, params object[] parmeters)
    Parameters
    System.String template

    Log template

    System.Object[] parmeters

    Log parameters

    Warning(Exception, String, Object[])

    Log to the underlying logger using the warning level

    Declaration
    void Warning(Exception ex, string template, params object[] parmeters)
    Parameters
    System.Exception ex

    Exception

    System.String template

    Log template

    System.Object[] parmeters

    Parameters to apply to template

    Warning(String, Object[])

    Log to the underlying logger using the warning level

    Declaration
    void Warning(string template, params object[] parmeters)
    Parameters
    System.String template

    Log template

    System.Object[] parmeters

    Parameters to apply to template

    Back to top Crosser SDK