Expand description
Logging for Tauri applications.
§Cargo features
- colored: Enables
Builder::with_colors, which usesfern’scoloredfeature for ANSI-colored outputs. - tracing: Emit both log and tracing for the JavaScript log commands.
Re-exports§
Structs§
- Builder
- Builds the log plugin, configuring targets, rotation, formatting and level filters before attaching the
resulting logger as the global logger for the
logcrate. - Target
- A log target.
Enums§
- Error
- The error type returned by this plugin’s fallible operations.
- File
Open Strategy - The strategy used to open a log file when a
TargetKind::FolderorTargetKind::LogDirtarget is set up. - LogLevel
- An enum representing the available verbosity levels of the logger.
- Rotation
Strategy - The strategy applied to a log file when it exceeds
Builder::max_file_size. - Target
Kind - An enum representing the available targets of the logger.
- Timezone
Strategy - The timezone used to compute the current time for log message timestamps and rotated log file names.
Constants§
- WEBVIEW_
TARGET - The log target prefix used for log records emitted through the JavaScript
trace/debug/info/warn/errorbindings, optionally followed by::{location}when the caller’s source location could be determined.
Functions§
- attach_
logger - Attaches the given logger