AWSDDContextDenylistFilterLogFormatter

Objective-C

@interface AWSDDContextDenylistFilterLogFormatter : NSObject <AWSDDLogFormatter>

Swift

class AWSDDContextDenylistFilterLogFormatter : NSObject, AWSDDLogFormatter

This class provides a log formatter that filters log statements from a logging context on the denylist.

  • Undocumented

    Declaration

    Objective-C

    - (instancetype)init NS_DESIGNATED_INITIALIZER;

    Swift

    init()
  • Add a context to the denylist

    Declaration

    Objective-C

    - (void)addToDenylist:(NSInteger)loggingContext;

    Swift

    func add(toDenylist loggingContext: Int)

    Parameters

    loggingContext

    the context

  • Remove context from denylist

    Declaration

    Objective-C

    - (void)removeFromDenylist:(NSInteger)loggingContext;

    Swift

    func remove(fromDenylist loggingContext: Int)

    Parameters

    loggingContext

    the context

  • Return the denylist

    Declaration

    Objective-C

    @property (copy, readonly) NSArray<NSNumber *> *_Nonnull denylist;

    Swift

    var denylist: [NSNumber] { get }
  • Check if a context is on the denylist

    Declaration

    Objective-C

    - (BOOL)isOnDenylist:(NSInteger)loggingContext;

    Swift

    func `is`(onDenylist loggingContext: Int) -> Bool

    Parameters

    loggingContext

    the context

Deprecated

  • Deprecated

    Use -addToDenylist: instead

    Add a context to the blacklist @deprecated Use -addToDenylist: instead.

    Declaration

    Objective-C

    - (void)addToBlacklist:(NSInteger)loggingContext;

    Swift

    func add(toBlacklist loggingContext: Int)

    Parameters

    loggingContext

    the context

  • Deprecated

    Use -removeFromDenylist: instead

    Remove context from blacklist @deprecated Use -removeFromDenylist: instead.

    Declaration

    Objective-C

    - (void)removeFromBlacklist:(NSInteger)loggingContext;

    Swift

    func remove(fromBlacklist loggingContext: Int)

    Parameters

    loggingContext

    the context

  • Deprecated

    Use denylist instead

    Return the blacklist @deprecated Use denylist instead.

    Declaration

    Objective-C

    @property (copy, readonly) NSArray<NSNumber *> *_Nonnull blacklist;

    Swift

    var blacklist: [NSNumber] { get }
  • Deprecated

    Use -isOnDenylist: instead

    Check if a context is on the blacklist @deprecated Use -isOnDenylist: instead.

    Declaration

    Objective-C

    - (BOOL)isOnBlacklist:(NSInteger)loggingContext;

    Swift

    func `is`(onBlacklist loggingContext: Int) -> Bool

    Parameters

    loggingContext

    the context