CLASS

HaapiLogger

Contents

swift
public class HaapiLogger: NSObject

Logger for Haapi.

Properties

followUpTags

swift
public static var followUpTags = [FollowUpTag]()

A list of FollowUpTag. With an empty list, no logs are print. By default, the list is empty.

isDebugEnabled

swift
@objc public static var isDebugEnabled = true

isDebugEnabled

When isDebugEnabled is true, debug log statements will be available across the IdsvrHaapi frameworks. Default value is false.

isInfoEnabled

swift
@objc public static var isInfoEnabled = true

When isInfoEnabled is true, info log statements will be available across the IdsvrHaapi frameworks. Default value is true.

isWarningEnabled

swift
@objc public static var isWarningEnabled = true

When isWarningEnabled is true, warning log statements will be available across the IdsvrHaapi frameworks. Default value is true.

isErrorEnabled

swift
@objc public static var isErrorEnabled = true

When isErrorEnabled is true, warning log statements will be available across the IdsvrHaapi frameworks. Default value is true.

isSensitiveValueMasked

swift
@objc public static var isSensitiveValueMasked = true

When isSensitiveValueMasked is true, data is masked when it is logged. Default value is true.

Methods

appendLogSink(_:)

swift
public static func appendLogSink(_ logSink: LogSink)

Appends a log sink to the HaapiLogger.

Parameters

Name Description
logSink A log sink.