Console
The console tab is a rather simple output of all emitted log messages aggregated from your code and all your code’s
dependencies. Any events you emit using the log
or tracing
crates will be captured here.
Log messages have associated Log Levels (Trace, Debug, Info, Warn, Error) and messages in the console will be color highlighted accordingly. You also have the option at the top of the console to filter by level, e.g. you can exclude the very verbose Trace and Debug messages.
Each log message will also include the source code location that the message originated from whenever available. A message might not always have location information available.
Setup using Rusts cfg macros
In the following snippet we use Rusts cfg macros to conditionally enable devtools
in debug builds and
tauri-plugin-log
when building with release optimizations.