This must be called before using any am_log_* interfaces.
If any SSO, authentication, or policy initialization functions, am_sso_init() , am_auth_init(), or am_policy_init(), is called, then am_log_init() does not need to be called separately. Any of those functions will call am_log_init() internally with the same properties parameter that was used to initialize SSO, authentication, or policy.
See the agents documentation on parameters related to logging that can be used to initialize log.
#include "am_log.h" AM_EXPORT am_status_t am_log_init(const am_properties_t log_init_params);
This function takes the following parameters:
Properties to initialize the log module with.
This function returns am_status_t with one of the following values:
If log initialization is successful.
If any error occurs, the type of error indicated by the status value.