> 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-object-object-object-logtype-int32.md).

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

Logs the text representation of the specified objects using the specified format information.

{% 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>
