Skip to content

Commit 0eea714

Browse files
committed
docs: clarify doc for configuring the filesystem logger
1 parent 1a27f96 commit 0eea714

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/builder.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,8 +329,11 @@ impl NodeBuilder {
329329
self
330330
}
331331

332-
/// Configures the [`Node`] instance to write logs to the filesystem with an optional
333-
/// `file_path` and `log_level` arguments.
332+
/// Configures the [`Node`] instance to write logs to the filesystem.
333+
///
334+
/// The `log_file_path` defaults to the [`DEFAULT_LOG_FILENAME`] in the default
335+
/// storage directory if set to None.
336+
/// The `log_level` defaults to [`DEFAULT_LOG_LEVEL`] if set to None.
334337
pub fn set_filesystem_logger(
335338
&mut self, log_file_path: Option<String>, log_level: Option<LogLevel>,
336339
) -> &mut Self {

0 commit comments

Comments
 (0)