extern struct diagnostic* log_config

(struct configobj* appconfig,
  char* pgmname,
  char* dataname,
  char* logname)

Implicitly initialize the logging system using a configuration object.

Documentation

Implicitly initialize the logging system using a configuration object.

Call this or log_create before creating your first connection structure.

Parameters:
appconfig - A configuration object which has the proper values set defining the profiles to be loaded. For an example, see threaded_os/examples/beepd.cfg
pgmname - Typically argv[0].
dataname - The application configuration, usually "default".
logname - The name of the logfile, or NULL to request a suitable default.
Returns:
On success, NULL; otherwise, a pointer to a diagnostic structure.

Home Alphabetic index



This page was generated with the help of DOC++.