diff options
| author | Teddy Wing | 2018-09-25 19:02:48 +0200 |
|---|---|---|
| committer | Teddy Wing | 2018-09-25 19:02:48 +0200 |
| commit | a81a24757a708bd7081431da118795976d154d4c (patch) | |
| tree | 873c9969baae972d90bb7500c6e71ced4d1ef098 | |
| parent | 9a63974bbfed1f5f9da53c19551a127eedab967d (diff) | |
| download | dome-key-map-a81a24757a708bd7081431da118795976d154d4c.tar.bz2 | |
logger_init(): Configure `stderrlog`
* No colours
* Add timestamp
| -rw-r--r-- | src/cocoa_bridge.rs | 7 |
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] |
