Table of Contents

Interface ILogger

Namespace
Dynamicweb.Logging
Assembly
Dynamicweb.Core.dll

Defines operations for logging providers, errors and exceptions. Implmented by the LoggerBase which is the class that should be inherited to create a custom logging engine.

public interface ILogger : IDisposable
Inherited Members

Methods

Debug(string)

Writes a log message using Debug.

void Debug(string message)

Parameters

message string

The message to write to the log.

Debug(string, Exception?)

Writes a log message using Debug. The log message will include information about the given Exception.

void Debug(string message, Exception? ex)

Parameters

message string

The message to write to the log.

ex Exception

The Exception to include in the log.

Error(string)

Writes a log message using Error.

void Error(string message)

Parameters

message string

The message to write to the log.

Error(string, Exception?)

Writes a log message using Error. The log message will include information about the given Exception.

void Error(string message, Exception? ex)

Parameters

message string

The message to write to the log.

ex Exception

The Exception to include in the log.

Fatal(string)

Writes a log message using Fatal.

void Fatal(string message)

Parameters

message string

The message to write to the log.

Fatal(string, Exception?)

Writes a log message using Fatal. The log message will include information about the given Exception.

void Fatal(string message, Exception? ex)

Parameters

message string

The message to write to the log.

ex Exception

The Exception to include in the log.

Info(string)

Writes a log message using Information.

void Info(string message)

Parameters

message string

The message to write to the log.

Info(string, Exception?)

Writes a log message using Information. The log message will include information about the given Exception.

void Info(string message, Exception? ex)

Parameters

message string

The message to write to the log.

ex Exception

The Exception to include in the log.

Log(LogLevel, string)

This is the default log method used to write a message to the log. This method uses the specified LogLevel.

void Log(LogLevel level, string message)

Parameters

level LogLevel

LogLevel

message string

The message to write to the log.

Log(LogLevel, string, Exception?)

This is the default log method used to write a message to the log. This method uses the specified LogLevel.

void Log(LogLevel level, string message, Exception? ex)

Parameters

level LogLevel

LogLevel

message string

The message to write to the log.

ex Exception

The Exception to include in the log.

Log(string)

This is the default log method used to write a message to the log. This method uses Information.

void Log(string message)

Parameters

message string

The message to write to the log.

Trace(string)

Writes a log message using Trace.

void Trace(string message)

Parameters

message string

The message to write to the log.

Trace(string, Exception?)

Writes a log message using Trace. The log message will include information about the given Exception.

void Trace(string message, Exception? ex)

Parameters

message string

The message to write to the log.

ex Exception

The Exception to include in the log.

Warn(string)

Writes a log message using Warning.

void Warn(string message)

Parameters

message string

The message to write to the log.

Warn(string, Exception?)

Writes a log message using Warning. The log message will include information about the given Exception.

void Warn(string message, Exception? ex)

Parameters

message string

The message to write to the log.

ex Exception

The Exception to include in the log.

To top