# Sandbox.Component.ILogListener.OnLog

```csharp
void OnLog(LogEvent entry)
```

Called for a queued log event. The event contains text and weak arguments, not a retained exception.
Engine diagnostics emitted in the scene's context are included; unrelated menu/editor scenes are excluded.

### Parameters

- `entry` (`LogEvent`)

Declared in [Sandbox.Component.ILogListener](/api/Sandbox.Component.ILogListener).
Assembly: `Sandbox.Engine`.
