Class Logger

This class provides diagnostic logging. It's a wrapper for a Log4NET logger object.

System.Object
  Stonefield.Logging.Logger
public class Logger : object, ILogger

Class Members

MemberDescription

Constructor

Constructor.

Debug

Logs a message using the Debug logging level.

public sealed void Debug(object message)

public sealed void Debug(object message,     Exception exception)

DebugFormat

Formats a message using the Debug logging level.

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

public sealed void DebugFormat(string format,     object arg0)

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

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

Error

Logs a message using the Error logging level.

public sealed void Error(object message)

public sealed void Error(object message,     Exception exception)

ErrorFormat

Formats a message using the Error logging level.

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

public sealed void ErrorFormat(string format,     object arg0)

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

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

Fatal

Logs a message using the Fatal logging level.

public sealed void Fatal(object message)

public sealed void Fatal(object message,     Exception exception)

FatalFormat

Formats a message using the Fatal logging level.

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

public sealed void FatalFormat(string format,     object arg0)

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

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

Info

Logs a message using the Info logging level.

public sealed void Info(object message)

public sealed void Info(object message,     Exception exception)

InfoFormat

Formats a message using the Info logging level.

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

public sealed void InfoFormat(string format,     object arg0)

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

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

Log

Logs a message using the specified logging level.

public sealed void Log(LoggingLevel level,     object message)

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

LogFormat

Formats a message using the specified logging level.

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

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

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

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

Warn

Logs a message using the Warn logging level.

public sealed void Warn(object message)

public sealed void Warn(object message,     Exception exception)

WarnFormat

Formats a message using the Warn logging level.

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

public sealed void WarnFormat(string format,     object arg0)

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

public sealed 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 Debug level.

IsErrorEnabled

Checks if this logger is enabled for the Error level.

IsFatalEnabled

Checks if this logger is enabled for the Fatal level.

IsInfoEnabled

Checks if this logger is enabled for the Info level.

IsWarnEnabled

Checks if this logger is enabled for the Warn level.

Requirements

Namespace: Stonefield.Logging
Assembly: logging.dll