AWSDDMultiFormatter
Objective-C
@interface AWSDDMultiFormatter : NSObject <AWSDDLogFormatter>
Swift
class AWSDDMultiFormatter : NSObject, AWSDDLogFormatter
This formatter can be used to chain different formatters together. The log message will processed in the order of the formatters added.
-
Array of chained formatters
Declaration
Objective-C
@property (nonatomic, readonly) NSArray<id<AWSDDLogFormatter>> *_Nonnull formatters;
Swift
var formatters: [AWSDDLogFormatter] { get }
-
Add a new formatter
Declaration
Objective-C
- (void)addFormatter:(nonnull id<AWSDDLogFormatter>)formatter;
Swift
func add(_ formatter: AWSDDLogFormatter)
-
Remove a formatter
Declaration
Objective-C
- (void)removeFormatter:(nonnull id<AWSDDLogFormatter>)formatter;
Swift
func remove(_ formatter: AWSDDLogFormatter)
-
Remove all existing formatters
Declaration
Objective-C
- (void)removeAllFormatters;
Swift
func removeAll()
-
Check if a certain formatter is used
Declaration
Objective-C
- (BOOL)isFormattingWithFormatter:(nonnull id<AWSDDLogFormatter>)formatter;
Swift
func isFormatting(with formatter: AWSDDLogFormatter) -> Bool