Interface IALogService
The interface for an actionETL logging service. This, and IALogFactory, must be implemented to inject a custom logging framework into a worker system. Otherwise not used directly by the library user.
Namespace: actionETL.Logging
Assembly: actionETL.dll
Syntax
public interface IALogService
Properties
IsDebugEnabled
Gets a value indicating whether logging is enabled for the Debug level.
This property must be thread-safe.
Declaration
bool IsDebugEnabled { get; }
Property Value
| Type | Description |
|---|---|
| Boolean |
|
IsErrorEnabled
Gets a value indicating whether logging is enabled for the Error level.
This property must be thread-safe.
Declaration
bool IsErrorEnabled { get; }
Property Value
| Type | Description |
|---|---|
| Boolean |
|
IsFatalEnabled
Gets a value indicating whether logging is enabled for the Fatal level.
This property must be thread-safe.
Declaration
bool IsFatalEnabled { get; }
Property Value
| Type | Description |
|---|---|
| Boolean |
|
IsInfoEnabled
Gets a value indicating whether logging is enabled for the Info level.
This property must be thread-safe.
Declaration
bool IsInfoEnabled { get; }
Property Value
| Type | Description |
|---|---|
| Boolean |
|
IsTraceEnabled
Gets a value indicating whether logging is enabled for the Trace level.
This property must be thread-safe.
Declaration
bool IsTraceEnabled { get; }
Property Value
| Type | Description |
|---|---|
| Boolean |
|
IsWarnEnabled
Gets a value indicating whether logging is enabled for the Warn level.
This property must be thread-safe.
Declaration
bool IsWarnEnabled { get; }
Property Value
| Type | Description |
|---|---|
| Boolean |
|
Name
Gets the name of the logger.
This property must be thread-safe.
Declaration
string Name { get; }
Property Value
| Type | Description |
|---|---|
| String |
Methods
IsEnabled(ALogLevel)
Gets a value indicating whether logging is enabled for the specified level.
This method must be thread-safe.
Declaration
bool IsEnabled(ALogLevel logLevel)
Parameters
| Type | Name | Description |
|---|---|---|
| ALogLevel | logLevel | The log level to check. |
Returns
| Type | Description |
|---|---|
| Boolean |
|
Log(ALogLevel, String, Exception, String)
Logs a log event, with a message string.
This method must be thread-safe.
Declaration
void Log(ALogLevel logLevel, string category, Exception exception, string message)
Parameters
| Type | Name | Description |
|---|---|---|
| ALogLevel | logLevel | The log level. |
| String | category | The category, can be |
| Exception | exception | The exception, can be |
| String | message | The message, can be |
Log(ALogMessageCallback, ALogLevel, String, Exception)
Logs a log event, with a message callback.
This method must be thread-safe.
Declaration
void Log(ALogMessageCallback messageFunc, ALogLevel logLevel, string category, Exception exception)
Parameters
| Type | Name | Description |
|---|---|---|
| ALogMessageCallback | messageFunc | The message function returning a string. It can be |
| ALogLevel | logLevel | The log level. |
| String | category | The category, can be |
| Exception | exception | The exception, can be |