ARTLogAdapter

Objective-C


@interface ARTLogAdapter : NSObject <ARTVersion2Log>

Swift

class LogAdapter : NSObject, Version2Log

ARTLogAdapter provides an implementation of ARTVersion2Log that writes all log messages to a given instance of ARTLog.

The intention of this class is to allow us to maintain the public API of the SDK, which allows users to provide an ARTLog instance, whilst using ARTVersion2Log for logging inside the SDK. Upon the next major release of this library, when ARTVersion2Log will be renamed ARTLog and the current ARTLog will be removed, we can remove this class too.

  • Unavailable

    Undocumented

    Declaration

    Objective-C

    - (instancetype)init NS_UNAVAILABLE;
  • Creates an instance of ARTLogAdapter which wraps an underlying ARTLog instance.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithLogger:(nonnull ARTLog *)logger;

    Swift

    init(logger: ARTLog)
  • ARTLogAdapter implements this ARTVersion2Log protocol requirement by forwarding the setter and getter calls to its underlying ARTLog instance.

    Declaration

    Objective-C

    @property (nonatomic) ARTLogLevel logLevel;

    Swift

    var logLevel: ARTLogLevel { get set }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, readonly) ARTLog *logger

    Swift

    var logger: ARTLog { get }