@@ -260,21 +260,21 @@ impl Builder {
260260
261261 /// Whether or not to write the level in the default format.
262262 pub fn format_level ( & mut self , write : bool ) -> & mut Self {
263- self . format . default_format . level = write;
263+ self . format . default_format . level ( write) ;
264264 self
265265 }
266266
267267 /// Whether or not to write the source file path in the default format.
268268 pub fn format_file ( & mut self , write : bool ) -> & mut Self {
269- self . format . default_format . source_file = write;
269+ self . format . default_format . file ( write) ;
270270 self
271271 }
272272
273273 /// Whether or not to write the source line number path in the default format.
274274 ///
275275 /// Only has effect if `format_file` is also enabled
276276 pub fn format_line_number ( & mut self , write : bool ) -> & mut Self {
277- self . format . default_format . source_line_number = write;
277+ self . format . default_format . line_number ( write) ;
278278 self
279279 }
280280
@@ -289,26 +289,26 @@ impl Builder {
289289
290290 /// Whether or not to write the module path in the default format.
291291 pub fn format_module_path ( & mut self , write : bool ) -> & mut Self {
292- self . format . default_format . module_path = write;
292+ self . format . default_format . module_path ( write) ;
293293 self
294294 }
295295
296296 /// Whether or not to write the target in the default format.
297297 pub fn format_target ( & mut self , write : bool ) -> & mut Self {
298- self . format . default_format . target = write;
298+ self . format . default_format . target ( write) ;
299299 self
300300 }
301301
302302 /// Configures the amount of spaces to use to indent multiline log records.
303303 /// A value of `None` disables any kind of indentation.
304304 pub fn format_indent ( & mut self , indent : Option < usize > ) -> & mut Self {
305- self . format . default_format . indent = indent;
305+ self . format . default_format . indent ( indent) ;
306306 self
307307 }
308308
309309 /// Configures if timestamp should be included and in what precision.
310310 pub fn format_timestamp ( & mut self , timestamp : Option < fmt:: TimestampPrecision > ) -> & mut Self {
311- self . format . default_format . timestamp = timestamp;
311+ self . format . default_format . timestamp ( timestamp) ;
312312 self
313313 }
314314
@@ -334,7 +334,7 @@ impl Builder {
334334
335335 /// Configures the end of line suffix.
336336 pub fn format_suffix ( & mut self , suffix : & ' static str ) -> & mut Self {
337- self . format . default_format . suffix = suffix;
337+ self . format . default_format . suffix ( suffix) ;
338338 self
339339 }
340340
@@ -353,7 +353,7 @@ impl Builder {
353353 where
354354 F : Fn ( & mut Formatter , & dyn log:: kv:: Source ) -> io:: Result < ( ) > + Sync + Send + ' static ,
355355 {
356- self . format . default_format . kv_format = Some ( Box :: new ( format) ) ;
356+ self . format . default_format . key_values ( format) ;
357357 self
358358 }
359359
0 commit comments