Interface ILogger
Defines the interface for a log method implementation.
Namespace: ImageVault.Common.Lib.Logging
Assembly: ImageVault.Common.dll
Syntax
public interface ILogger
Methods
IsEnabled(Level)
Checks if the supplied Level is enabled or not
Declaration
bool IsEnabled(Level level)
Parameters
| Type | Name | Description |
|---|---|---|
| Level | level |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Log(Level, Object, Exception)
Logs a message and or an exception
Declaration
void Log(Level level, object message, Exception exception)
Parameters
| Type | Name | Description |
|---|---|---|
| Level | level | The Level of the message |
| System.Object | message | The message to log |
| System.Exception | exception | An optional System.Exception to log |