@@ -198,21 +198,26 @@ const WALLET_KEYS_SEED_LEN: usize = 64;
198198///
199199/// ### Defaults
200200///
201- /// | Parameter | Value |
202- /// |----------------------------------------|------------------|
203- /// | `storage_dir_path` | /tmp/ldk_node/ |
204- /// | `network` | Bitcoin |
205- /// | `listening_address` | None |
206- /// | `default_cltv_expiry_delta` | 144 |
207- /// | `onchain_wallet_sync_interval_secs` | 80 |
208- /// | `wallet_sync_interval_secs` | 30 |
209- /// | `fee_rate_cache_update_interval_secs` | 600 |
210- /// | `trusted_peers_0conf` | [] |
211- /// | `log_level` | Debug |
201+ /// | Parameter | Value |
202+ /// |----------------------------------------|--------------------|
203+ /// | `storage_dir_path` | /tmp/ldk_node/ |
204+ /// | `log_dir_path` | None |
205+ /// | `network` | Bitcoin |
206+ /// | `listening_address` | None |
207+ /// | `default_cltv_expiry_delta` | 144 |
208+ /// | `onchain_wallet_sync_interval_secs` | 80 |
209+ /// | `wallet_sync_interval_secs` | 30 |
210+ /// | `fee_rate_cache_update_interval_secs` | 600 |
211+ /// | `trusted_peers_0conf` | [] |
212+ /// | `log_level` | Debug |
212213///
213214pub struct Config {
214215 /// The path where the underlying LDK and BDK persist their data.
215216 pub storage_dir_path : String ,
217+ /// The path where logs are stored.
218+ ///
219+ /// If set to `None`, logs can be found in the `logs` subdirectory in [`Config::storage_dir_path`].
220+ pub log_dir_path : Option < String > ,
216221 /// The used Bitcoin network.
217222 pub network : Network ,
218223 /// The IP address and TCP port the node will listen on.
@@ -247,6 +252,7 @@ impl Default for Config {
247252 fn default ( ) -> Self {
248253 Self {
249254 storage_dir_path : DEFAULT_STORAGE_DIR_PATH . to_string ( ) ,
255+ log_dir_path : None ,
250256 network : DEFAULT_NETWORK ,
251257 listening_address : None ,
252258 default_cltv_expiry_delta : DEFAULT_CLTV_EXPIRY_DELTA ,
0 commit comments