CBLFileLogger

@interface CBLFileLogger : NSObject <CBLLogger>

File logger used for writing log messages to files. To enable the file logger, setup the log file configuration and specifiy the log level as desired.

It is important to configure your CBLLogFileConfiguration 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 CBLLogFileConfiguration 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

    Objective-C

    @property (assign, readwrite, nonatomic, nullable)
        CBLLogFileConfiguration *config;

    Swift

    var config: CBLLogFileConfiguration? { get set }
  • The minimum log level of the log messages to be logged. The default log level for file logger is kCBLLogLevelNone which means no logging.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) CBLLogLevel level;

    Swift

    var level: CBLLogLevel { get set }
  • Not available

    Declaration

    Objective-C

    - (nonnull instancetype)init;