open class RotatingLogFileConfiguration: BasicLogConfiguration
The filesystem path to a directory where the log files will be stored.
open var directoryPath: String
Initializes a new
RotatingLogFileRecordercreated by this configuration assumes full control over the log directory specified as
directoryPath. Any file not recognized as an active log file will be deleted during the automatic pruning process, which may occur at any time. Therefore, be extremely careful when constructing the value passed in as the
The minimum supported
minimumSeveritywill be silently ignored by the configuration.
The number of days for which log files should be retained.
The filesystem path of the directory where the log files will be stored. Please note the warning above regarding the
Determines whether synchronous mode will be used by the underlying
RotatingLogFileRecorder. Synchronous mode is helpful while debugging, as it ensures that logs are always up-to-date when debug breakpoints are hit. However, synchronous mode can have a negative influence on performance and is therefore not recommended for use in production code.
LogFilters to use when deciding whether a given
LogEntryshould be passed along for recording.
An array of
LogFormatters to use for formatting log entries to be recorded by the receiver. Each formatter is consulted in sequence, and the formatted string returned by the first formatter to yield a non-
nilvalue will be recorded. If every formatter returns
nil, the log entry is silently ignored and not recorded.