Skip to content

Commit

Permalink
fix(logs): disable ansi when logging to files (#464)
Browse files Browse the repository at this point in the history
Fixes #461
  • Loading branch information
MaxCWhitehead authored Sep 14, 2024
1 parent 42966a4 commit 97478b4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions framework_crates/bones_framework/src/logging.rs
Original file line number Diff line number Diff line change
Expand Up @@ -305,8 +305,9 @@ pub fn setup_logging(settings: LogSettings) -> Option<LogFileGuard> {
match file_appender.build(&**log_path) {
Ok(file_appender) => {
let (non_blocking, _guard) = tracing_appender::non_blocking(file_appender);
let file_layer =
tracing_subscriber::fmt::Layer::default().with_writer(non_blocking);
let file_layer = tracing_subscriber::fmt::Layer::default()
.with_ansi(false)
.with_writer(non_blocking);
(Some(file_layer), Some(LogFileGuard(_guard)))
}
Err(err) => {
Expand Down

0 comments on commit 97478b4

Please sign in to comment.