Interface ILogger
- Namespace
- Dynamicweb.Logging
- Assembly
- Dynamicweb.Logging.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
Debug(string, string)
Writes a log message using Debug.
The log message will include information about the given Exception.
[Obsolete("Please use void Debug(string message) instead")]
void Debug(string message, string systemInfo)
Parameters
message
string- The message to write to the log.
systemInfo
string- Serialized system information to be save in a separate location
Debug(string, string, Exception)
Writes a log message using Debug.
The log message will include information about the given Exception.
[Obsolete("Please use void Debug(string message, Exception ex) instead")]
void Debug(string message, string systemInfo, Exception ex)
Parameters
message
string- The message to write to the log.
systemInfo
string- Serialized system information to be save in a separate location
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
Error(string, string)
Writes a log message using Error.
The log message will include information about the given Exception.
[Obsolete("Please use void Error(string message) instead")]
void Error(string message, string systemInfo)
Parameters
message
string- The message to write to the log.
systemInfo
string- Serialized system information to be save in a separate location
Error(string, string, Exception)
Writes a log message using Error.
The log message will include information about the given Exception.
[Obsolete("Please use void Error(string message, Exception ex) instead")]
void Error(string message, string systemInfo, Exception ex)
Parameters
message
string- The message to write to the log.
systemInfo
string- Serialized system information to be save in a seperate location
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
Fatal(string, string)
Writes a log message using Fatal.
The log message will include information about the given Exception.
[Obsolete("Please use void Fatal(string message) instead")]
void Fatal(string message, string systemInfo)
Parameters
message
string- The message to write to the log.
systemInfo
string- Serialized system information to be save in a separate location
Fatal(string, string, Exception)
Writes a log message using Fatal.
The log message will include information about the given Exception.
[Obsolete("Please use void Fatal(string message, Exception ex) instead")]
void Fatal(string message, string systemInfo, Exception ex)
Parameters
message
string- The message to write to the log.
systemInfo
string- Serialized system information to be save in a separate location
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
Info(string, string)
Writes a log message using Information.
The log message will include information about the given Exception.
[Obsolete("Please use void Info(string message) instead")]
void Info(string message, string systemInfo)
Parameters
message
string- The message to write to the log.
systemInfo
string- Serialized system information to be save in a seperate location
Info(string, string, Exception)
Writes a log message using Information.
The log message will include information about the given Exception.
[Obsolete("Please use void Info(string message, Exception ex) instead")]
void Info(string message, string systemInfo, Exception ex)
Parameters
message
string- The message to write to the log.
systemInfo
string- Serialized system information to be save in a separate location
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
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(LogLevel, string, string)
This is the default log method used to write a message to the log.
This method uses the specified LogLevel.
[Obsolete("Please use void Log(string message) instead")]
void Log(LogLevel level, string message, string systemInfo)
Parameters
level
LogLevel- LogLevel
message
string- The message to write to the log.
systemInfo
string- Serialized system information to be save in a separate location
Log(LogLevel, string, string, Exception)
This is the default log method used to write a message to the log.
This method uses the specified LogLevel.
[Obsolete("Please use void Log(string message, Exception ex) instead")]
void Log(LogLevel level, string message, string systemInfo, Exception ex)
Parameters
level
LogLevel- LogLevel
message
string- The message to write to the log.
systemInfo
string- Serialized system information to be save in a separate location
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
Trace(string, string)
Writes a log message using Trace.
The log message will include information about the given Exception.
[Obsolete("Please use void Trace(string message) instead")]
void Trace(string message, string systemInfo)
Parameters
message
string- The message to write to the log.
systemInfo
string- Serialized system information to be save in a separate location
Trace(string, string, Exception)
Writes a log message using Trace.
The log message will include information about the given Exception.
[Obsolete("Please use void Trace(string message, Exception ex) instead")]
void Trace(string message, string systemInfo, Exception ex)
Parameters
message
string- The message to write to the log.
systemInfo
string- Serialized system information to be save in a separate location
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
Warn(string, string)
Writes a log message using Warning.
The log message will include information about the given Exception.
[Obsolete("Please use void Warn(string message) instead")]
void Warn(string message, string systemInfo)
Parameters
message
string- The message to write to the log.
systemInfo
string- Serialized system information to be save in a separate location
Warn(string, string, Exception)
Writes a log message using Warning.
The log message will include information about the given Exception.
[Obsolete("Please use void Warn(string message, Exception ex) instead")]
void Warn(string message, string systemInfo, Exception ex)