Skip to content

iOS

This guide provides necessary information before starting Hive SDK development.

Runtime logs

To check the Hive SDK logs when your app is running, set useLog to true in the Configuration class.

Note

You can check Hive SDK debug logs in the Xcode console and the MacOS Console app, and filter for specific log types.

Setting runtime log types

You can select specific log types to view from among the Hive SDK logs. Use the Logger.setLogFilter API to set the Hive SDK log type. The default value is LogType.Verbose among the following six types.

  • LogType.Verbose: Output logs during development stage
  • LogType.Debug: Detailed logs for all stages
  • LogType.Info: Hive SDK progress and result callbacks (Recommended)
  • LogType.Warning: Errors that occur unexpectedly but do not affect game execution
  • LogType.Error: Errors that arise from missing configuration information and affect game execution
  • LogType.None: No logs are outputted

The log types are ordered from high to low, and only logs below the configured log type are outputted:

Verbose > Debug > Info > Waring > Error > None

HIVELogFilter* logFilter = [[HIVELogFilter alloc]initWithCoreLog:HIVELogTypeInfo serviceLog:HIVELogTypeInfo];
[HIVELogger setLogFilter:logFilter];
let logFilter = LogFilter.init(coreLog:LogType.Info, serviceLog: LogType.Info)
LogInterface.setLogFilter(logFilter)