Interface ILog

NOTE: This is a pre-release API that is UNSTABLE and might not satisfy the compatibility requirements as denoted by its associated normal version. Compatibility interface that mimics the ILog interface in log4net.

Namespace: EPiServer.Logging.Compatibility
Assembly: EPiServer.Framework.dll
Version: 8.11.0
Syntax
public interface ILog
Remarks

This class is provided to ease the transitioning from log4net. It is recommended to use the ILogger for new code.

Properties

IsDebugEnabled

Declaration
bool IsDebugEnabled { get; }
Property Value
Type Description
System.Boolean

IsErrorEnabled

Declaration
bool IsErrorEnabled { get; }
Property Value
Type Description
System.Boolean

IsFatalEnabled

Declaration
bool IsFatalEnabled { get; }
Property Value
Type Description
System.Boolean

IsInfoEnabled

Declaration
bool IsInfoEnabled { get; }
Property Value
Type Description
System.Boolean

IsWarnEnabled

Declaration
bool IsWarnEnabled { get; }
Property Value
Type Description
System.Boolean

Methods

Debug(Object)

Declaration
void Debug(object message)
Parameters
Type Name Description
System.Object message

Debug(Object, Exception)

Declaration
void Debug(object message, Exception exception)
Parameters
Type Name Description
System.Object message
System.Exception exception

DebugFormat(IFormatProvider, String, Object[])

Declaration
void DebugFormat(IFormatProvider provider, string format, params object[] args)
Parameters
Type Name Description
System.IFormatProvider provider
System.String format
System.Object[] args

DebugFormat(String, Object)

Declaration
void DebugFormat(string format, object arg0)
Parameters
Type Name Description
System.String format
System.Object arg0

DebugFormat(String, Object, Object)

Declaration
void DebugFormat(string format, object arg0, object arg1)
Parameters
Type Name Description
System.String format
System.Object arg0
System.Object arg1

DebugFormat(String, Object, Object, Object)

Declaration
void DebugFormat(string format, object arg0, object arg1, object arg2)
Parameters
Type Name Description
System.String format
System.Object arg0
System.Object arg1
System.Object arg2

DebugFormat(String, Object[])

Declaration
void DebugFormat(string format, params object[] args)
Parameters
Type Name Description
System.String format
System.Object[] args

Error(Object)

Declaration
void Error(object message)
Parameters
Type Name Description
System.Object message

Error(Object, Exception)

Declaration
void Error(object message, Exception exception)
Parameters
Type Name Description
System.Object message
System.Exception exception

ErrorFormat(IFormatProvider, String, Object[])

Declaration
void ErrorFormat(IFormatProvider provider, string format, params object[] args)
Parameters
Type Name Description
System.IFormatProvider provider
System.String format
System.Object[] args

ErrorFormat(String, Object)

Declaration
void ErrorFormat(string format, object arg0)
Parameters
Type Name Description
System.String format
System.Object arg0

ErrorFormat(String, Object, Object)

Declaration
void ErrorFormat(string format, object arg0, object arg1)
Parameters
Type Name Description
System.String format
System.Object arg0
System.Object arg1

ErrorFormat(String, Object, Object, Object)

Declaration
void ErrorFormat(string format, object arg0, object arg1, object arg2)
Parameters
Type Name Description
System.String format
System.Object arg0
System.Object arg1
System.Object arg2

ErrorFormat(String, Object[])

Declaration
void ErrorFormat(string format, params object[] args)
Parameters
Type Name Description
System.String format
System.Object[] args

Fatal(Object)

Declaration
void Fatal(object message)
Parameters
Type Name Description
System.Object message

Fatal(Object, Exception)

Declaration
void Fatal(object message, Exception exception)
Parameters
Type Name Description
System.Object message
System.Exception exception

FatalFormat(IFormatProvider, String, Object[])

Declaration
void FatalFormat(IFormatProvider provider, string format, params object[] args)
Parameters
Type Name Description
System.IFormatProvider provider
System.String format
System.Object[] args

FatalFormat(String, Object)

Declaration
void FatalFormat(string format, object arg0)
Parameters
Type Name Description
System.String format
System.Object arg0

FatalFormat(String, Object, Object)

Declaration
void FatalFormat(string format, object arg0, object arg1)
Parameters
Type Name Description
System.String format
System.Object arg0
System.Object arg1

FatalFormat(String, Object, Object, Object)

Declaration
void FatalFormat(string format, object arg0, object arg1, object arg2)
Parameters
Type Name Description
System.String format
System.Object arg0
System.Object arg1
System.Object arg2

FatalFormat(String, Object[])

Declaration
void FatalFormat(string format, params object[] args)
Parameters
Type Name Description
System.String format
System.Object[] args

Info(Object)

Declaration
void Info(object message)
Parameters
Type Name Description
System.Object message

Info(Object, Exception)

Declaration
void Info(object message, Exception exception)
Parameters
Type Name Description
System.Object message
System.Exception exception

InfoFormat(IFormatProvider, String, Object[])

Declaration
void InfoFormat(IFormatProvider provider, string format, params object[] args)
Parameters
Type Name Description
System.IFormatProvider provider
System.String format
System.Object[] args

InfoFormat(String, Object)

Declaration
void InfoFormat(string format, object arg0)
Parameters
Type Name Description
System.String format
System.Object arg0

InfoFormat(String, Object, Object)

Declaration
void InfoFormat(string format, object arg0, object arg1)
Parameters
Type Name Description
System.String format
System.Object arg0
System.Object arg1

InfoFormat(String, Object, Object, Object)

Declaration
void InfoFormat(string format, object arg0, object arg1, object arg2)
Parameters
Type Name Description
System.String format
System.Object arg0
System.Object arg1
System.Object arg2

InfoFormat(String, Object[])

Declaration
void InfoFormat(string format, params object[] args)
Parameters
Type Name Description
System.String format
System.Object[] args

Warn(Object)

Declaration
void Warn(object message)
Parameters
Type Name Description
System.Object message

Warn(Object, Exception)

Declaration
void Warn(object message, Exception exception)
Parameters
Type Name Description
System.Object message
System.Exception exception

WarnFormat(IFormatProvider, String, Object[])

Declaration
void WarnFormat(IFormatProvider provider, string format, params object[] args)
Parameters
Type Name Description
System.IFormatProvider provider
System.String format
System.Object[] args

WarnFormat(String, Object)

Declaration
void WarnFormat(string format, object arg0)
Parameters
Type Name Description
System.String format
System.Object arg0

WarnFormat(String, Object, Object)

Declaration
void WarnFormat(string format, object arg0, object arg1)
Parameters
Type Name Description
System.String format
System.Object arg0
System.Object arg1

WarnFormat(String, Object, Object, Object)

Declaration
void WarnFormat(string format, object arg0, object arg1, object arg2)
Parameters
Type Name Description
System.String format
System.Object arg0
System.Object arg1
System.Object arg2

WarnFormat(String, Object[])

Declaration
void WarnFormat(string format, params object[] args)
Parameters
Type Name Description
System.String format
System.Object[] args