CBLLogFileConfiguration

@interface CBLLogFileConfiguration : NSObject

Log file configuration.

  • The directory to store the log files.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSString *_Nonnull directory;
  • To use plain text file format instead of the default binary format.

    Declaration

    Objective-C

    @property (nonatomic) BOOL usePlainText;
  • The maximum size of a log file before being rotated in bytes. The default is 500 Kilobytes.

    Declaration

    Objective-C

    @property (nonatomic) uint64_t maxSize;
  • The Max number of rotated log files to keep. The default value is 1 which means one backup for a total of 2 log files.

    Declaration

    Objective-C

    @property (nonatomic) NSInteger maxRotateCount;
  • Initializes with a directory to store the log files.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithDirectory:(nonnull NSString *)directory;

    Parameters

    directory

    The directory.

    Return Value

    The CBLLogFileConfiguration object.

  • Not available

    Declaration

    Objective-C

    - (nonnull instancetype)init;