> For the complete documentation index, see [llms.txt](https://aptivi.gitbook.io/deprecated/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://aptivi.gitbook.io/deprecated/grilo-manual/power-users/diagnostics.md).

# Diagnostics

How do you diagnose the bootloader?

GRILO contains diagnostic tools that can be enabled with the `Diagnostic messages` variable found in the bootloader configuration. It basically saves all the debug information written with the `DiagnosticsWriter.WriteDiag()` function.

The following diagnostics levels (`DiagnosticsLevel` enum) are usable:

* `Info`
  * Informational diagnostic messages
* `Warning`
  * Warning messages
* `Error`
  * Error messages, usually indicating that something is wrong

Any diagnostic information is written to the `BootloaderDebug.log` file with the following format:

```
[<level>] <content>
```

where:

* `level`
  * The first letter of the diagnostics level
* `content`
  * Any message to be written

{% hint style="info" %}
Before GRILO 1.2.0, if the printing to console option is enabled, you can also see the diagnostic messages being printed to the console **live**.
{% endhint %}
