app/example/newrelic_common.c
/*!
 * @brief Configure the log and initialize daemon connection.
 *
 * @return true if log and daemon connection are configred. False otherwise
 */
@brief Configure the log and initialize daemon connection.
@return true if log and daemon connection are configred. False otherwise
@brief Configure the log and initialize daemon connection . @return true if log and daemon connection are configred . False otherwise
bool example_init(char* daemon_address) {
  if (!newrelic_configure_log("./c_sdk.log", NEWRELIC_LOG_INFO)) {
    printf("Error configuring logging.\n");
    return false;
  }
  if (!newrelic_init(daemon_address, 0)) {
    printf("Error connecting to daemon.\n");
    return false;
  }
  return true;
}
bool example_init ( char * daemon_address ) { if ( ! newrelic_configure_log ( " " , NEWRELIC_LOG_INFO ) ) { printf ( " \n " ) ; return false ; } if ( ! newrelic_init ( daemon_address , 0 ) ) { printf ( " \n " ) ; return false ; } return true ; }
@brief Configure the log and initialize daemon connection.
@brief Configure the log and initialize daemon connection .