drive_abci/logging/
format.rs

1use serde::{Deserialize, Serialize};
2
3/// Format of logs to use.
4///
5/// See <https://docs.rs/tracing-subscriber/latest/tracing_subscriber/fmt/index.html#formatters>
6#[derive(Debug, Serialize, Deserialize, Default, Clone, Copy)]
7#[serde(rename_all = "camelCase")]
8pub enum LogFormat {
9    /// Default, human-readable, single-line logs
10    #[default]
11    Full,
12    /// A variant of the default formatter, optimized for short line lengths
13    Compact,
14    /// Pretty, multi-line logs, optimized for human readability
15    Pretty,
16    /// Outputs newline-delimited JSON logs, for machine processing
17    Json,
18}