pub enum LogFormat {
Full,
Compact,
Pretty,
}Expand description
Log output format style.
Controls the overall structure and verbosity of log output.
§Example
use tauri_plugin_tracing::{Builder, LogFormat};
Builder::new()
.with_format(LogFormat::Compact)
.build::<tauri::Wry>();Variants§
Full
The default format with all information on a single line.
Output: 2024-01-15T10:30:00.000Z INFO my_app: message field=value
Compact
A compact format optimized for shorter line lengths.
Fields from the current span context are appended to the event fields rather than displayed in a separate section.
Pretty
A multi-line, human-readable format for development.
Includes colorful formatting, indentation, and verbose span information. Best suited for local development and debugging.
Trait Implementations§
impl Copy for LogFormat
Auto Trait Implementations§
impl Freeze for LogFormat
impl RefUnwindSafe for LogFormat
impl Send for LogFormat
impl Sync for LogFormat
impl Unpin for LogFormat
impl UnwindSafe for LogFormat
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more