diff options
| author | Gustav Sörnäs <gustav@sornas.net> | 2021-04-19 23:17:52 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-19 23:17:52 +0200 |
| commit | 182222664a513ef2b2da74e6b4f67274338b5a77 (patch) | |
| tree | 16ff6ca08aaeb5f6cbde8289940b56623b8706d0 /mumlib/src/lib.rs | |
| parent | 61ad0c5f80c79911cce00263d4b1bd3e2f2defe8 (diff) | |
| parent | 4da882513c9a692161ff00e4421325ffc7d4af24 (diff) | |
| download | mum-182222664a513ef2b2da74e6b4f67274338b5a77.tar.gz | |
Merge pull request #90 from mum-rs/server-list-parallel
Diffstat (limited to 'mumlib/src/lib.rs')
| -rw-r--r-- | mumlib/src/lib.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mumlib/src/lib.rs b/mumlib/src/lib.rs index 36edc10..9b7d686 100644 --- a/mumlib/src/lib.rs +++ b/mumlib/src/lib.rs @@ -16,7 +16,7 @@ pub fn setup_logger<T: Into<fern::Output>>(target: T, color: bool) { .format(move |out, message, record| { let message = message.to_string(); out.finish(format_args!( - "{} {}:{}{}{}", + "{} {} {}:{}{}{}", //TODO runtime flag that disables color if color { match record.level() { @@ -36,6 +36,7 @@ pub fn setup_logger<T: Into<fern::Output>>(target: T, color: bool) { } .normal() }, + chrono::Local::now().format("[%Y-%m-%d][%H:%M:%S%.6f]"), record.file().unwrap(), record.line().unwrap(), if message.chars().any(|e| e == '\n') { |
