CLASS
HaapiLogger
Contents
- Properties
followUpTags
isDebugEnabled
isDebugEnabled
isInfoEnabled
isWarningEnabled
isErrorEnabled
isSensitiveValueMasked
- Methods
appendLogSink(_:)
public class HaapiLogger: NSObject
Logger for Haapi.
Properties
followUpTags
public static var followUpTags = [FollowUpTag]()
A list of FollowUpTag
. With an empty list, no logs are print. By default, the list is empty
.
- Note: Setting
followUpTags
should be done as early as possible before any Haapi objects are instantiated.
isDebugEnabled
@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
.
- Note: Setting
isDebugEnabled
should be done as early as possible before any Haapi objects are instantiated.
isInfoEnabled
@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
@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
@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
@objc public static var isSensitiveValueMasked = true
When isSensitiveValueMasked
is true, data is masked when it is logged. Default value is true
.
- Note: It is not secured to set
isSensitiveValueMasked
to false. It should only be used when debugging. Therefore, if it set tofalse
, warnings are printed in the console.
Methods
appendLogSink(_:)
public static func appendLogSink(_ logSink: LogSink)
Appends a log sink to the HaapiLogger.
- Parameters:
- logSink: A log sink.
Parameters
Name | Description |
---|---|
logSink | A log sink. |