FileLogger
public class FileLogger
File logger used for writing log messages to files. To enable the file logger, setup the log file configuration and specify the log level as desired.
It is important to configure your LogFileConfiguration object appropriately before setting to a logger. Logger make a copy of the configuration settings you provide and use those settings to configure the logger. Once configured, the logger object ignores any changes you make to the LogFileConfiguration object.
-
The log file configuration for configuring the log directory, file format, and rotation policy. The config property is nil by default. Setting the config property to nil will disable the file logging.
Declaration
Swift
public var config: LogFileConfiguration? { get set }
-
The minimum log level of the log messages to be logged. The default log level for file logger is none which means no logging.
Declaration
Swift
public var level: LogLevel { get set }