feat(zlog)!: JSON logging support

This commit is contained in:
lily 2025-04-19 13:44:43 -04:00 committed by BitSyndicate
parent 01c3699d86
commit e347fe6d54
Signed by: bitsyndicate
GPG key ID: 443E4198D6BBA6DE
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)