ARTDefaultInternalLogCore
Objective-C
@interface ARTDefaultInternalLogCore : NSObject <ARTInternalLogCore>
Swift
class DefaultInternalLogCore : NSObject, InternalLogCore
The implementation of ARTInternalLogCore
that should be used in non-test code.
-
Creates a logger which forwards its generated messages to the given logger.
Declaration
Objective-C
- (nonnull instancetype)initWithLogger:(nonnull id<ARTVersion2Log>)logger;
Swift
init(logger: any Version2Log)
-
A convenience initializer which creates a logger initialized with an instance of
ARTLogAdapter
which wraps the given client options’logHandler
.Also, if the client options’
logLevel
is anything other thanARTLogLevelNone
, this initializer will set the client options’logHandler
’slogLevel
such that it matches the client options’logLevel
. (We offer no judgement here on whether this is the right thing to do or the right place to do it; this is pre-existing behaviour simply moved from elsewhere in the codebase.)Declaration
Objective-C
- (nonnull instancetype)initWithClientOptions: (nonnull ARTClientOptions *)clientOptions;
Swift
convenience init(clientOptions: ARTClientOptions)
-
Unavailable
Undocumented
Declaration
Objective-C
- (instancetype)init NS_UNAVAILABLE;
-
Undocumented
Declaration
Objective-C
@property (nonatomic, readonly) id<ARTVersion2Log> logger
Swift
var logger: any Version2Log { get }