Information about the current logging configuration
Any custom logging modules used by the developer’s code. Defaults to none.
@property (nonatomic, copy) NSSet<SDLLogFileModule *> *_Nonnull modules;
var modules: Set<AnyHashable> { get set }
Where the logs will attempt to output. Defaults to Console.
@property (nonatomic, copy) NSSet<id<SDLLogTarget>> *_Nonnull targets;
var targets: Set<AnyHashable> { get set }
What log filters will run over this session. Defaults to none.
@property (nonatomic, copy) NSSet<SDLLogFilter *> *_Nonnull filters;
var filters: Set<SDLLogFilter> { get set }
How detailed of logs will be output. Defaults to Default.
@property (nonatomic) SDLLogFormatType formatType;
var formatType: SDLLogFormatType { get set }
Whether or not logs will be run on a separate queue, asynchronously, allowing the following code to run before the log completes. Or if it will occur synchronously, which will prevent logs from being missed, but will slow down surrounding code. Defaults to YES.
@property (nonatomic, assign, unsafe_unretained, readwrite,
getter=isAsynchronous) BOOL asynchronous;
var isAsynchronous: Bool { get set }
Whether or not error logs will be dispatched to loggers asynchronously. Defaults to NO.
@property (nonatomic, assign, unsafe_unretained, readwrite,
getter=areErrorsAsynchronous) BOOL errorsAsynchronous;
var areErrorsAsynchronous: Bool { get set }
Whether or not assert logs will fire assertions in DEBUG mode. Assertions are always disabled in RELEASE builds. If assertions are disabled, only an error log will fire instead. Defaults to NO.
@property (nonatomic, assign, unsafe_unretained, readwrite,
getter=areAssertionsDisabled) BOOL disableAssertions;
var areAssertionsDisabled: Bool { get set }
Any modules that do not have an explicitly specified level will by default use the global log level. Defaults to Error. Do not specify Default for this parameter.
@property (nonatomic) SDLLogLevel globalLogLevel;
var globalLogLevel: SDLLogLevel { get set }
A default logger for production. This sets the format type to Default, the log level to Error, and the target to SDLLogTargetOSLog.
+ (nonnull instancetype)defaultConfiguration;
class func `default`() -> Self
A default configuration that may be customized.
A debug logger for use in development. This sets the format type to Detailed, the log level to Debug, and enables the Console and ASL loggers.
+ (nonnull instancetype)debugConfiguration;
class func debug() -> Self
A debug configuration that may be customized.