Class LoggerBase
- Namespace
- Dynamicweb.Logging
- Assembly
- Dynamicweb.Logging.dll
Provides base operations for logging useful information, errors and exceptions and is the base class for own implementations of a logging provider.
Dynamicweb has a build in logging provider using NLog, see NLogProvider.
public abstract class LoggerBase : ILogger, IDisposable
- Inheritance
-
LoggerBase
- Implements
- Inherited Members
Methods
Debug(string)
Writes a log message using Debug.
public virtual 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.
public virtual 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.
public virtual 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.
public abstract 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.
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources
public void Dispose()
Dispose(bool)
Releases unmanaged and - optionally - managed resources.
protected virtual void Dispose(bool disposing)
Parameters
disposing
booltrue
to release both managed and unmanaged resources;false
to release only unmanaged resources.
Error(string)
Writes a log message using Error.
public virtual 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.
public virtual 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.
public virtual 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.
public abstract void Error(string message, string systemInfo, Exception ex)
Parameters
message
string- The message to write to the log.
systemInfo
string- SystemInfo as string
ex
Exception- The Exception to include in the log.
Fatal(string)
Writes a log message using Fatal.
public virtual 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.
public virtual 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.
public virtual 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.
public abstract 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.
public virtual 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.
public virtual 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.
public virtual 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.
public abstract 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.
public virtual 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.
public virtual 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.
public virtual 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.
public abstract 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 Info.
public virtual void Log(string message)
Parameters
message
string- The message to write to the log.
Trace(string)
Writes a log message using Trace.
public virtual 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.
public virtual 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.
public virtual 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.
public abstract 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.
public virtual 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.
public virtual 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.
public virtual void Warn(string message, string systemInfo)
Parameters
message
string- The message to write to the log.
systemInfo
string- The Exception to include in the log.
Warn(string, string, Exception)
Writes a log message using Warning.
The log message will include information about the given Exception.
public abstract void Warn(string message, string systemInfo, Exception ex)