> For the complete documentation index, see [llms.txt](https://kinematicsoup.gitbook.io/reactor/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kinematicsoup.gitbook.io/reactor/api-reference/ks.reactor/ks.reactor.kslog/ks.reactor.kslog.loghandler.md).

# Delegate ksLog.LogHandler

Namespace: [KS.Reactor](/reactor/api-reference/ks.reactor.md)\
Assembly: KSCommon.dll

Delegate for logging a message.

```csharp
public delegate void ksLog.LogHandler(ksLog.Level level, string channel, string message, Exception exception, object context)
```

#### Parameters

`level` [ksLog](/reactor/api-reference/ks.reactor/ks.reactor.kslog.md).[Level](/reactor/api-reference/ks.reactor/ks.reactor.kslog/ks.reactor.kslog.level.md)

Level of the message.

`channel` [string](https://learn.microsoft.com/dotnet/api/system.string)

Channel the message was sent to.

`message` [string](https://learn.microsoft.com/dotnet/api/system.string)

Message to log. May be null if exception is provided.

`exception` [Exception](https://learn.microsoft.com/dotnet/api/system.exception)

Exception to log. May be null if message is provided.

`context` [object](https://learn.microsoft.com/dotnet/api/system.object)

Object related to this message.
