CBLCustomLogSink
@interface CBLCustomLogSink : NSObject
A log sink that writes log messages to a custom log sink implementation.
-
The minimum log level of the log messages to be logged. The default log level is warning.
Declaration
Objective-C
@property (nonatomic, readonly) int level;
-
The set of log domains of the log messages to be logged. The default is all domains.
Declaration
Objective-C
@property (nonatomic, readonly) int domains;
-
The custom log sink implementation that receives the log messages.
Declaration
Objective-C
@property (nonatomic, readonly) id<CBLLogSinkProtocol> _Nonnull logSink;
-
Initializes a custom log sink with a specified log level and custom log sink implementation.
Declaration
Objective-C
- (nonnull instancetype)initWithLevel:(id)level logSink:(nonnull id<CBLLogSinkProtocol>)logSink;
Parameters
level
The minimum log level.
logSink
The custom log sink implementation.
-
Initializes a custom log sink with a specified log level, log domains, and custom log sink implementation.
Declaration
Objective-C
- (nonnull instancetype)initWithLevel:(id)level domains:(id)domains logSink:(nonnull id<CBLLogSinkProtocol>)logSink;
Parameters
level
The minimum log level.
domains
The set of log domains.
logSink
The custom log sink implementation.