CBLLogFileConfiguration

@interface CBLLogFileConfiguration : NSObject

Log file configuration.

  • The directory to store the log files.

    Declaration

    Objective-C

    @property (readonly, nonatomic) NSString *_Nonnull directory;

    Swift

    var directory: String { get }
  • To use plain text file format instead of the default binary format.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) BOOL usePlainText;

    Swift

    var usePlainText: Bool { get set }
  • The maximum size of a log file before being rotated in bytes. The default is 500 Kilobytes.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) uint64_t maxSize;

    Swift

    var maxSize: UInt64 { get set }
  • 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 (assign, readwrite, nonatomic) NSInteger maxRotateCount;

    Swift

    var maxRotateCount: Int { get set }
  • Initializes with a directory to store the log files.

    Declaration

    Objective-C

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

    Swift

    init(directory: String)

    Parameters

    directory

    The directory.

    Return Value

    The CBLLogFileConfiguration object.

  • Not available

    Declaration

    Objective-C

    - (nonnull instancetype)init;