mirror of
https://github.com/Qortal/piratewallet-light-cli.git
synced 2025-07-30 03:41:28 +00:00
Improve logger
This commit is contained in:
@@ -26,7 +26,7 @@ pub mod grpc_client {
|
|||||||
pub fn main() {
|
pub fn main() {
|
||||||
// Configure logging first.
|
// Configure logging first.
|
||||||
let logfile = FileAppender::builder()
|
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();
|
.build(LightClient::get_log_path()).unwrap();
|
||||||
|
|
||||||
let config = Config::builder()
|
let config = Config::builder()
|
||||||
|
Reference in New Issue
Block a user