aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorNathan Perry <avaglir@gmail.com>2018-02-14 15:14:02 -0500
committerNathan Perry <avaglir@gmail.com>2018-02-14 15:14:02 -0500
commit321757ed1df35fee491630d939938593b1469981 (patch)
tree5bbe35d5d9a15a788ba55fcd81f90b26df8ce7b6 /src/main.rs
parente203148a2bb4cbcd198e7494132fb018e60c4722 (diff)
add time to log format, include trace logs
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs5
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()