@@ -37,8 +37,8 @@ impl FileSink {
3737 ///
3838 /// | Parameter | Default Value |
3939 /// |-----------------|-----------------------------|
40- /// | [level_filter] | ` All` |
41- /// | [formatter] | `FullFormatter` |
40+ /// | [level_filter] | [`LevelFilter:: All`] |
41+ /// | [formatter] | [ `FullFormatter`] |
4242 /// | [error_handler] | [`ErrorHandler::default()`] |
4343 /// | | |
4444 /// | [path] | *must be specified* |
@@ -47,8 +47,8 @@ impl FileSink {
4747 ///
4848 /// [level_filter]: FileSinkBuilder::level_filter
4949 /// [formatter]: FileSinkBuilder::formatter
50+ /// [`FullFormatter`]: crate::formatter::FullFormatter
5051 /// [error_handler]: FileSinkBuilder::error_handler
51- /// [`ErrorHandler::default()`]: crate::error::ErrorHandler::default()
5252 /// [path]: FileSinkBuilder::path
5353 /// [truncate]: FileSinkBuilder::truncate
5454 /// [capacity]: FileSinkBuilder::capacity
@@ -155,7 +155,7 @@ impl<ArgPath> FileSinkBuilder<ArgPath> {
155155 ///
156156 /// If it is `true`, the existing contents of the file will be discarded.
157157 ///
158- /// This parameter is **optional**.
158+ /// This parameter is **optional**, and defaults to `false` .
159159 #[ must_use]
160160 pub fn truncate ( mut self , truncate : bool ) -> Self {
161161 self . truncate = truncate;
@@ -164,7 +164,8 @@ impl<ArgPath> FileSinkBuilder<ArgPath> {
164164
165165 /// Specifies the internal buffer capacity.
166166 ///
167- /// This parameter is **optional**.
167+ /// This parameter is **optional**, and defaults to the value consistent
168+ /// with `std`.
168169 #[ must_use]
169170 pub fn capacity ( mut self , capacity : usize ) -> Self {
170171 self . capacity = Some ( capacity) ;
@@ -176,7 +177,7 @@ impl<ArgPath> FileSinkBuilder<ArgPath> {
176177
177178 /// Specifies a log level filter.
178179 ///
179- /// This parameter is **optional**.
180+ /// This parameter is **optional**, and defaults to [`LevelFilter::All`] .
180181 #[ must_use]
181182 pub fn level_filter ( self , level_filter : LevelFilter ) -> Self {
182183 self . prop . set_level_filter ( level_filter) ;
@@ -185,7 +186,9 @@ impl<ArgPath> FileSinkBuilder<ArgPath> {
185186
186187 /// Specifies a formatter.
187188 ///
188- /// This parameter is **optional**.
189+ /// This parameter is **optional**, and defaults to [`FullFormatter`].
190+ ///
191+ /// [`FullFormatter`]: crate::formatter::FullFormatter
189192 #[ must_use]
190193 pub fn formatter < F > ( self , formatter : F ) -> Self
191194 where
@@ -197,7 +200,8 @@ impl<ArgPath> FileSinkBuilder<ArgPath> {
197200
198201 /// Specifies an error handler.
199202 ///
200- /// This parameter is **optional**.
203+ /// This parameter is **optional**, and defaults to
204+ /// [`ErrorHandler::default()`].
201205 #[ must_use]
202206 pub fn error_handler < F : Into < ErrorHandler > > ( self , handler : F ) -> Self {
203207 self . prop . set_error_handler ( handler) ;
0 commit comments