ffi: Disable colorization of tracing fields

This commit is contained in:
Jonas Platte
2023-08-30 13:45:04 +02:00
committed by Jonas Platte
parent 5564d323f5
commit 1311ddbae3

View File

@@ -203,6 +203,10 @@ where
let file_layer = config.write_to_files.map(|c| {
fmt::layer()
.event_format(EventFormatter::new())
// EventFormatter doesn't support ANSI colors anyways, but the
// default field formatter does, which is unhelpful for iOS +
// Android logs, but enabled by default.
.with_ansi(false)
.with_writer(tracing_appender::rolling::hourly(c.path, c.file_prefix))
});