DDDispatchQueueLogFormatterMode
Objective-C
enum DDDispatchQueueLogFormatterMode {}
Swift
enum DDDispatchQueueLogFormatterMode : UInt
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
DDDispatchQueueLogFormatterModeShareble = 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
DDDispatchQueueLogFormatterModeNonShareble
Swift
case nonShareble = 1