AWSDDDispatchQueueLogFormatterMode

Objective-C

enum AWSDDDispatchQueueLogFormatterMode : NSUInteger {}

Swift

enum AWSDDDispatchQueueLogFormatterMode : UInt, @unchecked Sendable

Log formatter mode

  • This is the default option, means the formatter can be reused between multiple loggers and therefore is thread-safe. There is, of course, a performance cost for the thread-safety

    Declaration

    Objective-C

    AWSDDDispatchQueueLogFormatterModeShareble = 0

    Swift

    case shareble = 0
  • If the formatter will only be used by a single logger, then the thread-safety can be removed @note: there is an assert checking if the formatter is added to multiple loggers and the mode is non-shareble

    Declaration

    Objective-C

    AWSDDDispatchQueueLogFormatterModeNonShareble

    Swift

    case nonShareble = 1