Initialize RAPLogging API.
Call this method before
any other API in the RAPLogging API, and call it
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. You can define the log level
in the configuration file as the 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).