DDContextBlacklistFilterLogFormatter
Objective-C
@interface DDContextBlacklistFilterLogFormatter : NSObject <DDLogFormatter>
Swift
class DDContextBlacklistFilterLogFormatter : NSObject, DDLogFormatter
This class provides a log formatter that filters log statements from a logging context on the blacklist.
-
Undocumented
Declaration
Objective-C
- (instancetype)init NS_DESIGNATED_INITIALIZER;Swift
init() -
Add a context to the blacklist
Declaration
Objective-C
- (void)addToBlacklist:(NSInteger)loggingContext;Swift
func add(toBlacklist loggingContext: Int)Parameters
loggingContextthe context
-
Remove context from blacklist
Declaration
Objective-C
- (void)removeFromBlacklist:(NSInteger)loggingContext;Swift
func remove(fromBlacklist loggingContext: Int)Parameters
loggingContextthe context
-
Return the blacklist
Declaration
Objective-C
@property (copy, readonly) NSArray<NSNumber *> *_Nonnull blacklist;Swift
var blacklist: [NSNumber] { get } -
Check if a context is on the blacklist
Declaration
Objective-C
- (BOOL)isOnBlacklist:(NSInteger)loggingContext;Swift
func `is`(onBlacklist loggingContext: Int) -> BoolParameters
loggingContextthe context
View on GitHub
DDContextBlacklistFilterLogFormatter Class Reference