Improve logger

This commit is contained in:
Aditya Kulkarni
2019-09-16 21:43:03 -07:00
parent d72ec2d41f
commit a5fb6f7f4c

View File

@@ -26,7 +26,7 @@ pub mod grpc_client {
pub fn main() {
// Configure logging first.
let logfile = FileAppender::builder()
.encoder(Box::new(PatternEncoder::new("{l} - {m}\n")))
.encoder(Box::new(PatternEncoder::new("{l} -{d(%Y-%m-%d %H:%M:%S)}- {m}\n")))
.build(LightClient::get_log_path()).unwrap();
let config = Config::builder()