We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 427e74c commit 71ff89cCopy full SHA for 71ff89c
src/lib.rs
@@ -384,7 +384,11 @@ impl Builder {
384
fs::create_dir_all(bdk_data_dir.clone()).expect("Failed to create BDK data directory");
385
386
// Initialize the Logger
387
- let log_file_path = format!("{}/ldk_node.log", config.storage_dir_path);
+ let log_file_path = format!(
388
+ "{}/logs/ldk_node_{}.log",
389
+ config.storage_dir_path,
390
+ chrono::offset::Local::now().format("%Y_%m_%d")
391
+ );
392
let logger = Arc::new(FilesystemLogger::new(log_file_path, config.log_level));
393
394
// Initialize the on-chain wallet and chain access
0 commit comments