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
stringThe 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
Error(string)
Writes a log message using Error.
void Error(string message)
Parameters
message
stringThe 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
Fatal(string)
Writes a log message using Fatal.
void Fatal(string message)
Parameters
message
stringThe 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
Info(string)
Writes a log message using Information.
void Info(string message)
Parameters
message
stringThe 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
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
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
LogLevelmessage
stringThe message to write to the log.
ex
ExceptionThe 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
stringThe message to write to the log.
Trace(string)
Writes a log message using Trace.
void Trace(string message)
Parameters
message
stringThe 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
Warn(string)
Writes a log message using Warning.
void Warn(string message)
Parameters
message
stringThe 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)