diff options
| author | Nathan Perry <avaglir@gmail.com> | 2018-02-14 15:14:02 -0500 |
|---|---|---|
| committer | Nathan Perry <avaglir@gmail.com> | 2018-02-14 15:14:02 -0500 |
| commit | 321757ed1df35fee491630d939938593b1469981 (patch) | |
| tree | 5bbe35d5d9a15a788ba55fcd81f90b26df8ce7b6 /src | |
| parent | e203148a2bb4cbcd198e7494132fb018e60c4722 (diff) | |
add time to log format, include trace logs
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index d71ee0a..3f29d8e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -120,14 +120,15 @@ fn main() { fern::Dispatch::new() .format(move |out, message, record| { out.finish(format_args!( - "[{}] [{}] {}", + "{} [{}] [{}] {}", + chrono::Local::now().format("%_m/%_d/%y %l:%M:%S%P"), colors.color(record.level()), record.target(), message )) }) .level(log::LevelFilter::Warn) - .level_for("thulani_rs", log::LevelFilter::Debug) + .level_for("thulani_rs", log::LevelFilter::Trace) .level_for("serenity::voice::connection", log::LevelFilter::Error) .chain(std::io::stdout()) .apply() |
