aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2018-09-25 19:02:48 +0200
committerTeddy Wing2018-09-25 19:02:48 +0200
commita81a24757a708bd7081431da118795976d154d4c (patch)
tree873c9969baae972d90bb7500c6e71ced4d1ef098
parent9a63974bbfed1f5f9da53c19551a127eedab967d (diff)
downloaddome-key-map-a81a24757a708bd7081431da118795976d154d4c.tar.bz2
logger_init(): Configure `stderrlog`
* No colours * Add timestamp
-rw-r--r--src/cocoa_bridge.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/cocoa_bridge.rs b/src/cocoa_bridge.rs
index 189d504..8718e58 100644
--- a/src/cocoa_bridge.rs
+++ b/src/cocoa_bridge.rs
@@ -104,7 +104,12 @@ pub struct State {
#[no_mangle]
pub extern "C" fn logger_init() {
- stderrlog::new().module(module_path!()).init().unwrap();
+ stderrlog::new()
+ .module(module_path!())
+ .color(stderrlog::ColorChoice::Never)
+ .timestamp(stderrlog::Timestamp::Millisecond)
+ .init()
+ .unwrap();
}
#[no_mangle]