Interface ILogger

The ILogger interface is used by applications to log messages. ILogger instances are retrieved using LogManager.GetLogger(Type).


public abstract interface ILogger

Interface Members

MemberDescription

Debug

Logs a message using the Stonefield.Logging.LoggingLevel.Debug logging level.

public void Debug(object message);

public void Debug(object message,
    Exception exception);

DebugFormat

Logs a formatted message string using the Stonefield.Logging.LoggingLevel.Debug logging level.

public void DebugFormat(string format,
    Object[] args);

public void DebugFormat(string format,
    object arg0);

public void DebugFormat(string format,
    object arg0,
    object arg1);

public void DebugFormat(string format,
    object arg0,
    object arg1,
    object arg2);

Error

Logs a message using the Stonefield.Logging.LoggingLevel.Error logging level.

public void Error(object message);

public void Error(object message,
    Exception exception);

ErrorFormat

Logs a formatted message string using the Stonefield.Logging.LoggingLevel.Error logging level.

public void ErrorFormat(string format,
    Object[] args);

public void ErrorFormat(string format,
    object arg0);

public void ErrorFormat(string format,
    object arg0,
    object arg1);

public void ErrorFormat(string format,
    object arg0,
    object arg1,
    object arg2);

Fatal

Logs a message using the Stonefield.Logging.LoggingLevel.Fatal logging level.

public void Fatal(object message);

public void Fatal(object message,
    Exception exception);

FatalFormat

Logs a formatted message string using the Stonefield.Logging.LoggingLevel.Fatal logging level.

public void FatalFormat(string format,
    Object[] args);

public void FatalFormat(string format,
    object arg0);

public void FatalFormat(string format,
    object arg0,
    object arg1);

public void FatalFormat(string format,
    object arg0,
    object arg1,
    object arg2);

Info

Logs a message using the Stonefield.Logging.LoggingLevel.Info logging level.

public void Info(object message);

public void Info(object message,
    Exception exception);

InfoFormat

Logs a formatted message string using the Stonefield.Logging.LoggingLevel.Info logging level.

public void InfoFormat(string format,
    Object[] args);

public void InfoFormat(string format,
    object arg0);

public void InfoFormat(string format,
    object arg0,
    object arg1);

public void InfoFormat(string format,
    object arg0,
    object arg1,
    object arg2);

Log

Logs a message using the specified Stonefield.Logging.LoggingLevel.

public void Log(LoggingLevel level,
    object message);

public void Log(LoggingLevel level,
    object message,
    Exception exception);

LogFormat

Logs a formatted message string using the specified Stonefield.Logging.LoggingLevel.

public void LogFormat(LoggingLevel level,
    string format,
    Object[] args);

public void LogFormat(LoggingLevel level,
    string format,
    object arg0);

public void LogFormat(LoggingLevel level,
    string format,
    object arg0,
    object arg1);

public void LogFormat(LoggingLevel level,
    string format,
    object arg0,
    object arg1,
    object arg2);

Warn

Logs a message using the Stonefield.Logging.LoggingLevel.Warn logging level.

public void Warn(object message);

public void Warn(object message,
    Exception exception);

WarnFormat

Logs a formatted message string using the Stonefield.Logging.LoggingLevel.Warn logging level.

public void WarnFormat(string format,
    Object[] args);

public void WarnFormat(string format,
    object arg0);

public void WarnFormat(string format,
    object arg0,
    object arg1);

public void WarnFormat(string format,
    object arg0,
    object arg1,
    object arg2);

CurrentLogFile

If this logger has a file appender as one of the appenders, this property will contain the file being logged to.

IsDebugEnabled

Checks if this logger is enabled for the Stonefield.Logging.LoggingLevel.Debug level.

IsErrorEnabled

Checks if this logger is enabled for the Stonefield.Logging.LoggingLevel.Error level.

IsFatalEnabled

Checks if this logger is enabled for the Stonefield.Logging.LoggingLevel.Fatal level.

IsInfoEnabled

Checks if this logger is enabled for the Stonefield.Logging.LoggingLevel.Info level.

IsWarnEnabled

Checks if this logger is enabled for the Stonefield.Logging.LoggingLevel.Warn level.

Requirements

Namespace: Stonefield.Logging
Assembly: interfaces.dll