Interface ILog
A contract specifying the ability to log information.
Namespace: DotNetNuke.Instrumentation
Assembly: DotNetNuke.Instrumentation.dll
Syntax
public interface ILog
Properties
| Improve this Doc View SourceIsDebugEnabled
Gets a value indicating whether the Debug log level is enabled.
Declaration
bool IsDebugEnabled { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
IsErrorEnabled
Gets a value indicating whether the Error log level is enabled.
Declaration
bool IsErrorEnabled { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
IsFatalEnabled
Gets a value indicating whether the Fatal log level is enabled.
Declaration
bool IsFatalEnabled { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
IsInfoEnabled
Gets a value indicating whether the Info log level is enabled.
Declaration
bool IsInfoEnabled { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
IsTraceEnabled
Gets a value indicating whether the Trace log level is enabled.
Declaration
bool IsTraceEnabled { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
IsWarnEnabled
Gets a value indicating whether the Warn log level is enabled.
Declaration
bool IsWarnEnabled { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Methods
| Improve this Doc View SourceDebug(Object, Exception)
Log a message and exception details at the Debug log level.
Declaration
void Debug(object message, Exception exception)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | message | An object to display as the message. |
| Exception | exception | An exception to include in the log. |
Debug(Object)
Log a message at the Debug log level.
Declaration
void Debug(object message)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | message | An object to display as the message. |
DebugFormat(IFormatProvider, String, Object[])
Log a message at the Debug log level.
Declaration
void DebugFormat(IFormatProvider provider, string format, params object[] args)
Parameters
| Type | Name | Description |
|---|---|---|
| IFormatProvider | provider | An object that supplies culture-specific formatting information. |
| System.String | format | |
| System.Object[] | args | An object array that contains zero or more objects to format. |
DebugFormat(String, Object[])
Log a message at the Debug log level.
Declaration
void DebugFormat(string format, params object[] args)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | format | |
| System.Object[] | args | An object array that contains zero or more objects to format. |
Error(Object, Exception)
Log a message and exception details at the Error log level.
Declaration
void Error(object message, Exception exception)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | message | An object to display as the message. |
| Exception | exception | An exception to include in the log. |
Error(Object)
Log a message at the Error log level.
Declaration
void Error(object message)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | message | An object to display as the message. |
ErrorFormat(IFormatProvider, String, Object[])
Log a message at the Error log level.
Declaration
void ErrorFormat(IFormatProvider provider, string format, params object[] args)
Parameters
| Type | Name | Description |
|---|---|---|
| IFormatProvider | provider | An object that supplies culture-specific formatting information. |
| System.String | format | |
| System.Object[] | args | An object array that contains zero or more objects to format. |
ErrorFormat(String, Object[])
Log a message at the Error log level.
Declaration
void ErrorFormat(string format, params object[] args)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | format | |
| System.Object[] | args | An object array that contains zero or more objects to format. |
Fatal(Object, Exception)
Log a message and exception details at the Fatal log level.
Declaration
void Fatal(object message, Exception exception)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | message | An object to display as the message. |
| Exception | exception | An exception to include in the log. |
Fatal(Object)
Log a message at the Fatal log level.
Declaration
void Fatal(object message)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | message | An object to display as the message. |
FatalFormat(IFormatProvider, String, Object[])
Log a message at the Fatal log level.
Declaration
void FatalFormat(IFormatProvider provider, string format, params object[] args)
Parameters
| Type | Name | Description |
|---|---|---|
| IFormatProvider | provider | An object that supplies culture-specific formatting information. |
| System.String | format | |
| System.Object[] | args | An object array that contains zero or more objects to format. |
FatalFormat(String, Object[])
Log a message at the Fatal log level.
Declaration
void FatalFormat(string format, params object[] args)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | format | |
| System.Object[] | args | An object array that contains zero or more objects to format. |
Info(Object, Exception)
Log a message and exception details at the Info log level.
Declaration
void Info(object message, Exception exception)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | message | An object to display as the message. |
| Exception | exception | An exception to include in the log. |
Info(Object)
Log a message at the Info log level.
Declaration
void Info(object message)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | message | An object to display as the message. |
InfoFormat(IFormatProvider, String, Object[])
Log a message at the Info log level.
Declaration
void InfoFormat(IFormatProvider provider, string format, params object[] args)
Parameters
| Type | Name | Description |
|---|---|---|
| IFormatProvider | provider | An object that supplies culture-specific formatting information. |
| System.String | format | |
| System.Object[] | args | An object array that contains zero or more objects to format. |
InfoFormat(String, Object[])
Log a message at the Info log level.
Declaration
void InfoFormat(string format, params object[] args)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | format | |
| System.Object[] | args | An object array that contains zero or more objects to format. |
Trace(Object, Exception)
Log a message and exception details at the Trace log level.
Declaration
void Trace(object message, Exception exception)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | message | An object to display as the message. |
| Exception | exception | An exception to include in the log. |
Trace(Object)
Log a message at the Trace log level.
Declaration
void Trace(object message)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | message | An object to display as the message. |
TraceFormat(IFormatProvider, String, Object[])
Log a message at the Trace log level.
Declaration
void TraceFormat(IFormatProvider provider, string format, params object[] args)
Parameters
| Type | Name | Description |
|---|---|---|
| IFormatProvider | provider | An object that supplies culture-specific formatting information. |
| System.String | format | |
| System.Object[] | args | An object array that contains zero or more objects to format. |
TraceFormat(String, Object[])
Log a message at the Trace log level.
Declaration
void TraceFormat(string format, params object[] args)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | format | |
| System.Object[] | args | An object array that contains zero or more objects to format. |
Warn(Object, Exception)
Log a message and exception details at the Warn log level.
Declaration
void Warn(object message, Exception exception)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | message | An object to display as the message. |
| Exception | exception | An exception to include in the log. |
Warn(Object)
Log a message at the Warn log level.
Declaration
void Warn(object message)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | message | An object to display as the message. |
WarnFormat(IFormatProvider, String, Object[])
Log a message at the Warn log level.
Declaration
void WarnFormat(IFormatProvider provider, string format, params object[] args)
Parameters
| Type | Name | Description |
|---|---|---|
| IFormatProvider | provider | An object that supplies culture-specific formatting information. |
| System.String | format | |
| System.Object[] | args | An object array that contains zero or more objects to format. |
WarnFormat(String, Object[])
Log a message at the Warn log level.
Declaration
void WarnFormat(string format, params object[] args)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | format | |
| System.Object[] | args | An object array that contains zero or more objects to format. |