ARTInternalLogCore
Objective-C
@protocol ARTInternalLogCore <NSObject>
Swift
protocol InternalLogCore : NSObjectProtocol
ARTInternalLogCore
is the type underlying ARTInternalLog
, and defines the logging functionality available to components of the SDK.
It’s responsible for receiving log messages from SDK components, performing additional processing on these messages, and forwarding the result to an object conforming to the ARTVersion2Log
protocol.
This protocol exists to give internal SDK components access to a rich and useful logging interface, whilst minimising the complexity (and hence the implementation burden for users of the SDK) of the ARTVersion2Log
protocol. It also allows us to evolve the logging interface used internally without introducing breaking changes for users of the SDK.
The initial interface of ARTInternalLogCore
more or less mirrors that of the ARTLog
class, for compatibility with existing internal SDK code. However, it will evolve as we gather requirements for the information logged by the SDK — see issues #1623 and #1624.
-
Declaration
Objective-C
- (void)log:(nonnull NSString *)message withLevel:(ARTLogLevel)level file:(nonnull const char *)fileName line:(NSInteger)line;
Swift
func log(_ message: String, with level: ARTLogLevel, file fileName: UnsafePointer<CChar>, line: Int)
-
Undocumented
Declaration
Objective-C
@property (nonatomic) ARTLogLevel logLevel
Swift
var logLevel: ARTLogLevel { get set }