# Logger(Object, LogType, Int32)

{% code title="Declaration" %}

```csharp
public static void Logger(object value, LogType logType, int logLevel)
```

{% endcode %}

{% code title="Example" %}

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

engine.Logger(dt, LogType.Information, -1);
```

{% endcode %}

{% code title="Result" %}

```
Information|-1|ID0|Logger_Object_Test|01/01/0001 9:52:45 AM
```

{% 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.object">Object</a></td><td>value</td><td>The value to write.</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>
