# Interface ILogger OptimaJet.Workflow.Core.Logging.ILogger Provides the logging contract used by Workflow Engine to write debug, informational, and error messages. Namespace: [OptimaJet.Workflow.Core.Logging](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Logging/) ```csharp public interface ILogger : IDisposable ``` ## Type Hierarchy - ILogger Current type - Base interfaces - [IDisposable](https://learn.microsoft.com/dotnet/api/system.idisposable) ## Methods `void Debug(string messageTemplate)` Writes a debug-level log message. ### Parameters | Name | Type | Description | | --- | --- | --- | | `messageTemplate` | `String` | The message template that describes the log message. | `void Debug(string messageTemplate, params object[] propertyValues)` Writes a debug-level log message with values associated with template placeholders. ### Parameters | Name | Type | Description | | --- | --- | --- | | `messageTemplate` | `String` | The message template that describes the log message. | | `propertyValues` | `Object[]` | The values to associate with placeholders in `messageTemplate`. | `void Debug(Exception exception, string messageTemplate)` Writes a debug-level log message and its associated [Exception](https://learn.microsoft.com/dotnet/api/system.exception). ### Parameters | Name | Type | Description | | --- | --- | --- | | `exception` | `Exception` | The [Exception](https://learn.microsoft.com/dotnet/api/system.exception) associated with the log message. | | `messageTemplate` | `String` | The message template that describes the log message. | `void Debug(Exception exception, string messageTemplate, params object[] propertyValues)` Writes a debug-level log message, its associated [Exception](https://learn.microsoft.com/dotnet/api/system.exception), and values associated with template placeholders. ### Parameters | Name | Type | Description | | --- | --- | --- | | `exception` | `Exception` | The [Exception](https://learn.microsoft.com/dotnet/api/system.exception) associated with the log message. | | `messageTemplate` | `String` | The message template that describes the log message. | | `propertyValues` | `Object[]` | The values to associate with placeholders in `messageTemplate`. | `void Error(string messageTemplate)` Writes an error-level log message. ### Parameters | Name | Type | Description | | --- | --- | --- | | `messageTemplate` | `String` | The message template that describes the log message. | `void Error(string messageTemplate, params object[] propertyValues)` Writes an error-level log message with values associated with template placeholders. ### Parameters | Name | Type | Description | | --- | --- | --- | | `messageTemplate` | `String` | The message template that describes the log message. | | `propertyValues` | `Object[]` | The values to associate with placeholders in `messageTemplate`. | `void Error(Exception exception, string messageTemplate)` Writes an error-level log message and its associated [Exception](https://learn.microsoft.com/dotnet/api/system.exception). ### Parameters | Name | Type | Description | | --- | --- | --- | | `exception` | `Exception` | The [Exception](https://learn.microsoft.com/dotnet/api/system.exception) associated with the log message. | | `messageTemplate` | `String` | The message template that describes the log message. | `void Error(Exception exception, string messageTemplate, params object[] propertyValues)` Writes an error-level log message, its associated [Exception](https://learn.microsoft.com/dotnet/api/system.exception), and values associated with template placeholders. ### Parameters | Name | Type | Description | | --- | --- | --- | | `exception` | `Exception` | The [Exception](https://learn.microsoft.com/dotnet/api/system.exception) associated with the log message. | | `messageTemplate` | `String` | The message template that describes the log message. | | `propertyValues` | `Object[]` | The values to associate with placeholders in `messageTemplate`. | `void Info(string messageTemplate)` Writes an informational log message. ### Parameters | Name | Type | Description | | --- | --- | --- | | `messageTemplate` | `String` | The message template that describes the log message. | `void Info(string messageTemplate, params object[] propertyValues)` Writes an informational log message with values associated with template placeholders. ### Parameters | Name | Type | Description | | --- | --- | --- | | `messageTemplate` | `String` | The message template that describes the log message. | | `propertyValues` | `Object[]` | The values to associate with placeholders in `messageTemplate`. | `void Info(Exception exception, string messageTemplate)` Writes an informational log message and its associated [Exception](https://learn.microsoft.com/dotnet/api/system.exception). ### Parameters | Name | Type | Description | | --- | --- | --- | | `exception` | `Exception` | The [Exception](https://learn.microsoft.com/dotnet/api/system.exception) associated with the log message. | | `messageTemplate` | `String` | The message template that describes the log message. | `void Info(Exception exception, string messageTemplate, params object[] propertyValues)` Writes an informational log message, its associated [Exception](https://learn.microsoft.com/dotnet/api/system.exception), and values associated with template placeholders. ### Parameters | Name | Type | Description | | --- | --- | --- | | `exception` | `Exception` | The [Exception](https://learn.microsoft.com/dotnet/api/system.exception) associated with the log message. | | `messageTemplate` | `String` | The message template that describes the log message. | | `propertyValues` | `Object[]` | The values to associate with placeholders in `messageTemplate`. | [Previous TimeHelper](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.License/TimeHelper/) [Next IProcessLogProvider](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Logging/IProcessLogProvider/)