• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Improve this Doc

Class DnnLog

Provides access to logging methods. Obsolete, use LoggerSource instead.

Inheritance
System.Object
DnnLog
Namespace: DotNetNuke.Instrumentation
Assembly: DotNetNuke.Instrumentation.dll
Syntax
public static class DnnLog : object

Methods

| Improve this Doc View Source

Debug(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

A composite format string.

System.Object[] args

An object array that contains zero or more objects to format.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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

A composite format string.

System.Object[] args

An object array that contains zero or more objects to format.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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

A composite format string.

System.Object[] args

An object array that contains zero or more objects to format.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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

A composite format string.

System.Object[] args

An object array that contains zero or more objects to format.

| Improve this Doc View Source

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

A composite format string.

System.Object[] args

An object array that contains zero or more objects to format.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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

A composite format string.

System.Object[] args

An object array that contains zero or more objects to format.

| Improve this Doc View Source

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

A composite format string.

System.Object[] args

An object array that contains zero or more objects to format.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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

A composite format string.

System.Object[] args

An object array that contains zero or more objects to format.

| Improve this Doc View Source

MethodEntry()

Standard method to use on method entry.

Declaration
public static void MethodEntry()
| Improve this Doc View Source

MethodExit()

Standard method to use on method exit.

Declaration
public static void MethodExit()
| Improve this Doc View Source

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.

| Improve this Doc View Source

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

A composite format string.

System.Object[] args

An object array that contains zero or more objects to format.

| Improve this Doc View Source

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

A composite format string.

System.Object[] args

An object array that contains zero or more objects to format.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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

A composite format string.

System.Object[] args

An object array that contains zero or more objects to format.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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

A composite format string.

System.Object[] args

An object array that contains zero or more objects to format.

  • View Source
Back to top by the community, for the community... #DNNCMS