FireSync API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
kStatus kHealth_SetLog ( kHealth  health,
kHealthLog  log 
)

Installs a health logger.

This method can be used to install a health logger that provides persistence for health indicator data. After setting the log, future calls to kHealth_SaveLogSnapshot will have the effect of generating new log snapshots.

Note that the values or baselines of any already-existent probes that were constructed with the kHEALTH_OPTION_RESTORE or kHEALTH_OPTION_BASELINE options (respectively) may be modified upon log installation. This nuance may require some attention in the design of health probes that are constructed prior to log installation.

This method is thread-safe.

Parameters
healthHealth service.
logHealth log object (or kNULL, to uninstall the existing logger).
Returns
Operation status.