Struct flexi_logger::writers::FileLogWriterBuilder [] [src]

pub struct FileLogWriterBuilder { /* fields omitted */ }

Builder for FileLogWriter.

Methods

impl FileLogWriterBuilder
[src]

Simple methods for influencing the behavior of the FileLogWriter.

[src]

Makes the FileLogWriter print an info message to stdout when a new file is used for log-output.

[src]

Makes the FileLogWriter use the provided format function for the log entries, rather than the default (formats::default_format).

[src]

Specifies a folder for the log files.

If the specified folder does not exist, the initialization will fail. By default, the log files are created in the folder where the program was started.

[src]

Specifies a suffix for the log files. The default is "log".

[src]

Makes the logger not include a timestamp into the names of the log files

[src]

By default, the log file will grow indefinitely. With this option, when the log file reaches or exceeds the specified file size, the file will be closed and a new file will be opened. Also the filename pattern changes - instead of the timestamp, a serial number is included into the filename.

[src]

The specified String is added to the log file name.

The specified String will be used on linux systems to create in the current folder a symbolic link to the current log file.

[src]

Produces the FileLogWriter.