HID APPROVE SDK 6.1
HID Approve SDK for iOS/macOS
Loading...
Searching...
No Matches
HIDLog.h File Reference

Define constants required to configure HID Approve SDK logging behavior. More...

import <Foundation/Foundation.h>

Go to the source code of this file.

Variables

SDK logging preference keys

Following strings define preference keys to add to your application to configure HID Approve SDK logging behavior

NSString *const HID_PREFKEY_LOG_LEVEL
NSString *const HID_PREFKEY_LOG_LOGFILEPATH
SDK logging level values

Following strings define all SDK log level (from disabled to the log verbosity when enabled).

NSString *const HID_PREFVALUE_LOG_LEVEL_ERROR
NSString *const HID_PREFVALUE_LOG_LEVEL_INFO
NSString *const HID_PREFVALUE_LOG_LEVEL_OFF
NSString *const HID_PREFVALUE_LOG_LEVEL_VERBOSE
SDK log file path values

Following strings define all SDK log file path values.

NSString *const HID_PREFVALUE_LOG_LOGFILEPATH_SUPPORTDIR

Detailed Description

Define constants required to configure HID Approve SDK logging behavior.

SDK logs are based on Apple OSLog, but can also be redirected to a log file located in the application bundle.

Add below preferences key/value pairs to your application to configure logging behavior.

Variable Documentation

◆ HID_PREFKEY_LOG_LEVEL

NSString* const HID_PREFKEY_LOG_LEVEL
extern

This key controls SDK logging behavior (disabled or enabled). It also controls the log level (log verbosity) of the SDK when logging is enabled.

◆ HID_PREFKEY_LOG_LOGFILEPATH

NSString* const HID_PREFKEY_LOG_LOGFILEPATH
extern

When SDK log are enabled, this key controls if log should also be redirected to a log file located in the application bundle.
When this key is missing, no log file will be created.
The string value may contain NSSearchPathDirectory enum by using percent sign (for example, NSCachesDirectory%/Logs.txt).

◆ HID_PREFVALUE_LOG_LEVEL_ERROR

NSString* const HID_PREFVALUE_LOG_LEVEL_ERROR
extern

Define SDK log level to log only error events

◆ HID_PREFVALUE_LOG_LEVEL_INFO

NSString* const HID_PREFVALUE_LOG_LEVEL_INFO
extern

Define SDK log level to log useful information and errors events

◆ HID_PREFVALUE_LOG_LEVEL_OFF

NSString* const HID_PREFVALUE_LOG_LEVEL_OFF
extern

Define SDK log level to disabled, meaning no logs will be generated (default value)

◆ HID_PREFVALUE_LOG_LEVEL_VERBOSE

NSString* const HID_PREFVALUE_LOG_LEVEL_VERBOSE
extern

Define SDK log level to log all useful events during software debugging

◆ HID_PREFVALUE_LOG_LOGFILEPATH_SUPPORTDIR

NSString* const HID_PREFVALUE_LOG_LOGFILEPATH_SUPPORTDIR
extern

Define SDK log file path to default value ("%NSApplicationSupportDirectory%/ApproveSDK.log").