# Logger(String, Object, Object, Object, LogType, Int32)

{% code title="Declaration" %}

```csharp
public static void Logger(string format, object arg0, object arg1, object arg2, LogType logType, int logLevel)
```

{% endcode %}

{% code title="Example" %}

```csharp
var dt = new DateTime(1, 1, 1, 9, 52, 45);

engine.Logger("At {0:t}, the temperature is {1}°C and {2}.", dt, 17.1, "slightly overcast", LogType.None, 2);
```

{% endcode %}

{% code title="Result" %}

```
None|2|ID0|Logger_3_Arg_Test|At 9:52 AM, the temperature is 17.1°C and slightly overcast.
```

{% endcode %}

<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>format</td><td>A composite format string.</td></tr><tr><td><a href="https://learn.microsoft.com/dotnet/api/system.object">Object</a></td><td>arg0</td><td>The first object to write using the format parameter.</td></tr><tr><td><a href="https://learn.microsoft.com/dotnet/api/system.object">Object</a></td><td>arg1</td><td>The second object to write using the format parameter.</td></tr><tr><td><a href="https://learn.microsoft.com/dotnet/api/system.object">Object</a></td><td>arg2</td><td>The third object to write using the format parameter.</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>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://zamberetta.gitbook.io/auctus-class-library/reference/automation/logger/logger-string-object-object-object-logtype-int32.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
