CBLFileLogSink
@interface CBLFileLogSink : NSObject
A log sink that writes log messages to files.
-
The minimum log level for log messages. Default is
kCBLLogLevelNone, meaning no logging.Declaration
Objective-C
@property (nonatomic, readonly) int level; -
The directory where log files will be stored.
Declaration
Objective-C
@property (nonatomic, copy, readonly) NSString *_Nonnull directory; -
To use plain text file format instead of the default binary format.
Declaration
Objective-C
@property (nonatomic, readonly) BOOL usePlaintext; -
The maximum number of log files to keep. Default is
kCBLDefaultMaxKeptFiles.Declaration
Objective-C
@property (nonatomic, readonly) NSInteger maxKeptFiles; -
The maximum size of a log file before rotation. Default is
kCBLDefaultMaxFileSize.Declaration
Objective-C
@property (nonatomic, readonly) unsigned long long maxFileSize; -
Initializes with log level and directory.
Declaration
Objective-C
- (nonnull instancetype)initWithLevel:(id)level directory:(nonnull NSString *)directory;Parameters
levelThe minimum log level.
directoryThe log file directory.
-
Initializes with full configuration options.
Declaration
Objective-C
- (nonnull instancetype)initWithLevel:(id)level directory:(nonnull NSString *)directory usePlaintext:(BOOL)usePlainText maxKeptFiles:(NSInteger)maxKeptFiles maxFileSize:(unsigned long long)maxFileSize;Parameters
levelThe minimum log level.
directoryThe log file directory.
usePlainTextWhether to use plain text format.
maxKeptFilesThe maximum number of log files.
maxFileSizeThe maximum size of a log file.
-
Unavailable
Not available
Declaration
Objective-C
- (nonnull instancetype)init;
CBLFileLogSink Class Reference