> For the complete documentation index, see [llms.txt](https://zamberetta.gitbook.io/auctus-class-library/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://zamberetta.gitbook.io/auctus-class-library/reference/protocol/logger/logger-string-logtype-int32.md).

# Logger(String, LogType, Int32)

Logs the specified string value.

{% code title="Declaration" %}

```csharp
public static void Logger(string message, LogType logType, int logLevel)
```

{% endcode %}

{% code title="Example" %}

```csharp
engine.Logger("An unexpected error occurred!", LogType.Error, 5);
```

{% endcode %}

<pre data-title="Result"><code><strong>Error|5|ID0|Logger_String_Test|An unexpected error occurred!
</strong></code></pre>

<table><thead><tr><th width="134.33333333333331">Type</th><th width="114">Name</th><th>Description</th></tr></thead><tbody><tr><td><a href="https://learn.microsoft.com/dotnet/api/system.string">String</a></td><td>message</td><td>The message to log.</td></tr><tr><td><a href="https://docs.dataminer.services/develop/api/types/Skyline.DataMiner.Automation.LogType.html">LogType</a></td><td>logType</td><td>Specifies the log type.</td></tr><tr><td><a href="https://learn.microsoft.com/dotnet/api/system.int32">Int32</a></td><td>logLevel</td><td>Specifies the log level.</td></tr></tbody></table>
