File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -383,8 +383,15 @@ impl Builder {
383
383
let bdk_data_dir = format ! ( "{}/bdk" , config. storage_dir_path) ;
384
384
fs:: create_dir_all ( bdk_data_dir. clone ( ) ) . expect ( "Failed to create BDK data directory" ) ;
385
385
386
+ let logs_dir = format ! ( "{}/logs" , config. storage_dir_path) ;
387
+ fs:: create_dir_all ( logs_dir. clone ( ) ) . expect ( "Failed to create logs directory" ) ;
388
+
386
389
// Initialize the Logger
387
- let log_file_path = format ! ( "{}/ldk_node.log" , config. storage_dir_path) ;
390
+ let log_file_path = format ! (
391
+ "{}/ldk_node_{}.log" ,
392
+ logs_dir,
393
+ chrono:: offset:: Local :: now( ) . format( "%Y_%m_%d" )
394
+ ) ;
388
395
let logger = Arc :: new ( FilesystemLogger :: new ( log_file_path, config. log_level ) ) ;
389
396
390
397
// Initialize the on-chain wallet and chain access
You can’t perform that action at this time.
0 commit comments