feat(zlog)!: JSON logging support

This commit is contained in:
lily 2025-04-19 13:44:43 -04:00
parent 5f5cb2d618
commit 36daa42245
Signed by: lily
GPG key ID: 601F3263FBCBC4B9
5 changed files with 162 additions and 12 deletions

View file

@ -485,8 +485,13 @@ impl ApplicationHandler for App<'_> {
}
pub fn main() -> Result<(), terminator::Terminator> {
let config = LoggerConfig::default()
.colored_stdout(true)
.log_to_stdout(true)
.colored_stdout(false)
.log_to_stdout(false)
.log_use_json(true)
.log_json_show_timestamp(true)
.log_json_show_level(true)
.log_json_show_message(true)
.log_json_show_additional_fields(true)
.file_include_time(true)
.log_to_file(true)
.level(LogLevel::Info)