ARTVersion2Log

Objective-C

@protocol ARTVersion2Log <NSObject>

Swift

protocol Version2Log : NSObjectProtocol

The ARTVersion2Log protocol represents a logger object that handles data emitted by the SDK’s logging system. It will be renamed ARTLog in the next major release of the SDK (replacing the existing class), at which point users of the SDK will need to provide an implementation of this protocol if they wish to replace the SDK’s default logger.

The initial interface of ARTVersion2Log is based on that of the ARTLog class. However, its design will evolve as we gather further information about the following things:

  1. Requirements for the information logged by the SDK — see issues #1623 and #1624.

  2. Requirements for the data emitted by the SDK’s logging system — see issues #1618 and #1625.

  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic) ARTLogLevel logLevel

    Swift

    var logLevel: ARTLogLevel { get set }
  • Declaration

    Objective-C

    - (void)log:(nonnull NSString *)message
        withLevel:(ARTLogLevel)level
             file:(nonnull NSString *)fileName
             line:(NSInteger)line;

    Swift

    func log(_ message: String, with level: ARTLogLevel, file fileName: String, line: Int)