# Logger(String, Object, LogType, Int32)

{% code title="Declaration" %}

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

{% endcode %}

{% code title="Example" %}

```csharp
engine.Logger("The temperature is {0}°C.", 20.4, LogType.Information, -1);
```

{% endcode %}

{% code title="Result" %}

```
Information|-1|ID0|Logger_1_Arg_Test|The temperature is 20.4°C.
```

{% 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>An object to write using 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>
