Skip to content

Commit adbefab

Browse files
authored
resolve time format difference between chrono and time for ELK parsing (#222)
1 parent 2bfb196 commit adbefab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/logging.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ pub struct SimpleLogger {
88
lcore_id: i32,
99
}
1010

11-
const FORMATTER: &[FormatItem<'_>] = format_description!("[year]-[month]-[day] [hour]:[minute]:[second].[subsecond digits:9] [offset_hour][offset_minute]");
11+
const FORMATTER: &[FormatItem<'_>] = format_description!("[year]-[month]-[day] [hour]:[minute]:[second].[subsecond digits:9] [offset_hour sign:mandatory][offset_minute]");
1212

1313
impl log::Log for SimpleLogger {
1414
fn enabled(&self, metadata: &Metadata) -> bool {

0 commit comments

Comments
 (0)