Interface ILog
An interface for a Log writing class
Namespace: ImageVault.Common.Lib.Logging
Assembly: ImageVault.Common.dll
Syntax
public interface ILog
Properties
IsCriticalEnabled
Declaration
bool IsCriticalEnabled { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsDebugEnabled
Declaration
bool IsDebugEnabled { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsErrorEnabled
Declaration
bool IsErrorEnabled { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsInfoEnabled
Declaration
bool IsInfoEnabled { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsVerboseEnabled
Gets the IsVerboseEnabled of the Log4NetLog
Declaration
bool IsVerboseEnabled { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsWarnEnabled
Declaration
bool IsWarnEnabled { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
Critical(Func<Object>, Exception)
Logs a message object with the Critical level. Only invokes the message func if Critical is enabled
Declaration
void Critical(Func<object> messageFunc, Exception exception = null)
Parameters
Type | Name | Description |
---|---|---|
System.Func<System.Object> | messageFunc | The function that returns the message object to log. |
System.Exception | exception | The System.Exception to log |
Critical(Object)
Logs a message object with the Critical level.
Declaration
void Critical(object message)
Parameters
Type | Name | Description |
---|---|---|
System.Object | message | The message object to log. |
Critical(Object, Exception)
Logs a message object with the Critical level.
Declaration
void Critical(object message, Exception exception)
Parameters
Type | Name | Description |
---|---|---|
System.Object | message | The message object to log. |
System.Exception | exception | The System.Exception to log |
Debug(Func<Object>, Exception)
Logs a message object with the Debug level. Only invokes the message func if debug is enabled
Declaration
void Debug(Func<object> messageFunc, Exception exception = null)
Parameters
Type | Name | Description |
---|---|---|
System.Func<System.Object> | messageFunc | The function that returns the message object to log. |
System.Exception | exception | The System.Exception to log |
Debug(Object)
Logs a message object with the Debug level.
Declaration
void Debug(object message)
Parameters
Type | Name | Description |
---|---|---|
System.Object | message | The message object to log. |
Debug(Object, Exception)
Logs a message object with the Debug level.
Declaration
void Debug(object message, Exception exception)
Parameters
Type | Name | Description |
---|---|---|
System.Object | message | The message object to log. |
System.Exception | exception | The System.Exception to log |
Error(Func<Object>, Exception)
Logs a message object with the Error level. Only invokes the message func if Error is enabled
Declaration
void Error(Func<object> messageFunc, Exception exception = null)
Parameters
Type | Name | Description |
---|---|---|
System.Func<System.Object> | messageFunc | The function that returns the message object to log. |
System.Exception | exception | The System.Exception to log |
Error(Object)
Logs a message object with the Error level.
Declaration
void Error(object message)
Parameters
Type | Name | Description |
---|---|---|
System.Object | message | The message object to log. |
Error(Object, Exception)
Logs a message object with the Error level.
Declaration
void Error(object message, Exception exception)
Parameters
Type | Name | Description |
---|---|---|
System.Object | message | The message object to log. |
System.Exception | exception | The System.Exception to log |
Info(Func<Object>, Exception)
Logs a message object with the Info level. Only invokes the message func if Info is enabled
Declaration
void Info(Func<object> messageFunc, Exception exception = null)
Parameters
Type | Name | Description |
---|---|---|
System.Func<System.Object> | messageFunc | The function that returns the message object to log. |
System.Exception | exception | The System.Exception to log |
Info(Object)
Logs a message object with the Info level.
Declaration
void Info(object message)
Parameters
Type | Name | Description |
---|---|---|
System.Object | message | The message object to log. |
Info(Object, Exception)
Logs a message with the Info level
Declaration
void Info(object message, Exception exception)
Parameters
Type | Name | Description |
---|---|---|
System.Object | message | |
System.Exception | exception |
IsEnabled(Level)
Checks if the level is enabled
Declaration
bool IsEnabled(Level level)
Parameters
Type | Name | Description |
---|---|---|
Level | level |
Returns
Type | Description |
---|---|
System.Boolean |
Log(Level, String, Exception)
Logs a message
Declaration
void Log(Level level, string message, Exception exception)
Parameters
Type | Name | Description |
---|---|---|
Level | level | |
System.String | message | |
System.Exception | exception |
Verbose(Func<Object>, Exception)
Logs a message object with the Verbose level. Only invokes the message func if Verbose is enabled
Declaration
void Verbose(Func<object> messageFunc, Exception exception = null)
Parameters
Type | Name | Description |
---|---|---|
System.Func<System.Object> | messageFunc | The function that returns the message object to log. |
System.Exception | exception | The System.Exception to log |
Verbose(Object)
Logs a message object with the Verbose level.
Declaration
void Verbose(object message)
Parameters
Type | Name | Description |
---|---|---|
System.Object | message | The message object to log. |
Verbose(Object, Exception)
Logs a message object with the Verbose level.
Declaration
void Verbose(object message, Exception exception)
Parameters
Type | Name | Description |
---|---|---|
System.Object | message | |
System.Exception | exception |
Warn(Func<Object>, Exception)
Logs a message object with the Warn level. Only invokes the message func if Warn is enabled
Declaration
void Warn(Func<object> messageFunc, Exception exception = null)
Parameters
Type | Name | Description |
---|---|---|
System.Func<System.Object> | messageFunc | The function that returns the message object to log. |
System.Exception | exception | The System.Exception to log |
Warn(Object)
Logs a message object with the Warn level.
Declaration
void Warn(object message)
Parameters
Type | Name | Description |
---|---|---|
System.Object | message | The message object to log. |
Warn(Object, Exception)
Logs a message object with the Warn level.
Declaration
void Warn(object message, Exception exception)
Parameters
Type | Name | Description |
---|---|---|
System.Object | message | The message object to log. |
System.Exception | exception | The exception to log, including its stack trace. |