Interface ILogger
Represents a type used to perform logging.
Namespace:CacheManager.Core.Logging
Assembly:CacheManager.Core.dll
Syntax
public interface ILogger
Methods
| Improve this Doc View SourceBeginScope(Object)
Begins a logical operation scope.
Declaration
IDisposable BeginScope(object state)
Parameters
Type | Name | Description |
---|---|---|
Object | state | The identifier for the scope. |
Returns
Type | Description |
---|---|
IDisposable | An |
IsEnabled(LogLevel)
Checks if the given LogLevel is enabled.
Declaration
bool IsEnabled(LogLevel logLevel)
Parameters
Type | Name | Description |
---|---|---|
LogLevel | logLevel | The log level. |
Returns
Type | Description |
---|---|
Boolean |
|
Log(LogLevel, Int32, Object, Exception)
Logs a message for the given logLevel.
Declaration
void Log(LogLevel logLevel, int eventId, object message, Exception exception)
Parameters
Type | Name | Description |
---|---|---|
LogLevel | logLevel | The log level. |
Int32 | eventId | The optional even id. |
Object | message | The log message. |
Exception | exception | The optional exception. |