Struct sloggers::file::FileLoggerBuilder
[−]
[src]
pub struct FileLoggerBuilder { /* fields omitted */ }
A logger builder which build loggers that write log records to the specified file.
Methods
impl FileLoggerBuilder
[src]
fn new<P: AsRef<Path>>(path: P) -> Self
Makes a new FileLoggerBuilder
instance.
This builder will create a logger which uses path
as
the output destination of the log records.
fn format(&mut self, format: Format) -> &mut Self
Sets the format of log records.
fn timezone(&mut self, timezone: TimeZone) -> &mut Self
Sets the time zone which this logger will use.
fn level(&mut self, severity: Severity) -> &mut Self
Sets the log level of this logger.