Struct sloggers::file::FileLoggerBuilder [] [src]

pub struct FileLoggerBuilder { /* fields omitted */ }

A logger builder which build loggers that write log records to the specified file.

The resulting logger will work asynchronously (the default channel size is 1024).

Methods

impl FileLoggerBuilder
[src]

[src]

Makes a new FileLoggerBuilder instance.

This builder will create a logger which uses path as the output destination of the log records.

[src]

Sets the format of log records.

[src]

Sets the source code location type this logger will use.

[src]

Sets the time zone which this logger will use.

[src]

Sets the log level of this logger.

[src]

Sets the size of the asynchronous channel of this logger.

[src]

By default, logger just appends log messages to file. If this method called, logger truncates the file to 0 length when opening.

Trait Implementations

impl Debug for FileLoggerBuilder
[src]

[src]

Formats the value using the given formatter.

impl Build for FileLoggerBuilder
[src]

[src]

Builds a logger.