Class DnnLog
Provides access to logging methods. Obsolete, use LoggerSource instead.
Inheritance
Namespace: DotNetNuke.Instrumentation
Assembly: DotNetNuke.Instrumentation.dll
Syntax
public static class DnnLog : object
Methods
| Improve this Doc View SourceDebug(IFormatProvider, String, Object[])
Log a message at the Debug log level.
Declaration
public static void Debug(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. |
Debug(Object)
Logs a message at the Debug log level.
Declaration
public static void Debug(object message)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | message | The message to log. |
Debug(String, Object[])
Log a message at the Debug log level.
Declaration
public static void Debug(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(Exception)
Log exception details at the Error log level.
Declaration
public static void Error(Exception exception)
Parameters
| Type | Name | Description |
|---|---|---|
| Exception | exception | An exception to include in the log. |
Error(IFormatProvider, String, Object[])
Log a message at the Error log level.
Declaration
public static void Error(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. |
Error(Object)
Logs a message at the Error log level.
Declaration
public static void Error(object message)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | message | The message to log. |
Error(String, Exception)
Log a message and exception details at the Error log level.
Declaration
public static void Error(string message, Exception exception)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | message | An object to display as the message. |
| Exception | exception | An exception to include in the log. |
Error(String, Object[])
Log a message at the Error log level.
Declaration
public static void Error(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(IFormatProvider, String, Object[])
Log a message at the Fatal log level.
Declaration
public static void Fatal(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. |
Fatal(Object)
Logs a message at the Fatal log level.
Declaration
public static void Fatal(object message)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | message | The message to log. |
Fatal(String, Exception)
Log a message and exception details at the Fatal log level.
Declaration
public static void Fatal(string message, Exception exception)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | message | An object to display as the message. |
| Exception | exception | An exception to include in the log. |
Fatal(String, Object[])
Log a message at the Fatal log level.
Declaration
public static void Fatal(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(IFormatProvider, String, Object[])
Log a message at the Info log level.
Declaration
public static void Info(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. |
Info(Object)
Logs a message at the Info log level.
Declaration
public static void Info(object message)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | message | The message to log. |
Info(String, Object[])
Log a message at the Info log level.
Declaration
public static void Info(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. |
MethodEntry()
Standard method to use on method entry.
Declaration
public static void MethodEntry()
MethodExit()
Standard method to use on method exit.
Declaration
public static void MethodExit()
MethodExit(Object)
Standard method to use on method exit.
Declaration
public static void MethodExit(object returnObject)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | returnObject | The return value of the method. |
Trace(IFormatProvider, String, Object[])
Log a message at the Trace log level.
Declaration
public static void Trace(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. |
Trace(String, Object[])
Log a message at the Trace log level.
Declaration
public static void Trace(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(String)
Logs a message at the Trace log level.
Declaration
public static void Trace(string message)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | message | The message to log. |
Warn(IFormatProvider, String, Object[])
Log a message at the Warn log level.
Declaration
public static void Warn(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. |
Warn(Object)
Logs a message at the Warn log level.
Declaration
public static void Warn(object message)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | message | The message to log. |
Warn(String, Exception)
Log a message and exception details at the Warn log level.
Declaration
public static void Warn(string message, Exception exception)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | message | An object to display as the message. |
| Exception | exception | An exception to include in the log. |
Warn(String, Object[])
Log a message at the Warn log level.
Declaration
public static void Warn(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. |