# set_diagnostics_handler

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-view/diagnostics/function-set_diagnostics_handler/

**function** · [`ferroui-view`](/docs/0.5.0/api/ferroui-view/) · v0.5.0

```rust
fn set_diagnostics_handler(handler: impl Fn(&Diagnostic) -> () + 'static)
```

Gives the diagnostics of the thread to `handler` instead of printing
them (a test, a log, an inspector).

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/diagnostics.rs#L102)

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
