log_open

Use the log_open method to initialize RAPLogging.

This method must be called before any other API in the RAPLogging API, and should be called only once.

Syntax

uint16_t log_open( char * filepath , uint16_t log_level);

Parameters

char * filepath

The name and location of the log file. The file path can be either relative or absolute.

Uint16_t log_level

The log level defined in the configuration file. The log level acts as a filter, ensuring that any message with a lower log level is ignored and not written into the log file. It can be defined in the configuration file as default filter value, or you can explicitly set the filter level dynamically.

Returns

uint16_t error_code (an error code) or ERR_NONE (value 0).


Created March 26, 2009. Send feedback on this help topic to Sybase Technical Publications: pubs@sybase.com