#include "lcas_log.h"
Go to the source code of this file.
Defines | |
#define | MAX_LOG_BUFFER_SIZE 2048 |
#define | DO_USRLOG ((unsigned short)0x0001) |
#define | DO_SYSLOG ((unsigned short)0x0002) |
Functions | |
int | lcas_log_open (char *path, FILE *fp, unsigned short logtype) |
Start logging. | |
int | lcas_log_close () |
Stop logging. |
Definition in file _lcas_log.h.
|
flag to indicate that syslogging has to be done Definition at line 41 of file _lcas_log.h. Referenced by lcas_init(), lcas_log_open(), and lcas_setup(). |
|
flag to indicate that user logging has to be done Definition at line 39 of file _lcas_log.h. Referenced by lcas_init(), lcas_log_open(), and lcas_setup(). |
|
Maximum logging buffer size, length of log may not exceed this number Definition at line 36 of file _lcas_log.h. Referenced by lcas_log(), lcas_log_a_string(), lcas_log_debug(), and lcas_log_time(). |
|
Start logging. This function should only be used by the LCAS itself. It opens the logfile and tries to set the debugging level in the following order:
Definition at line 66 of file lcas_log.c. References DEBUG_LEVEL, debug_level, DO_SYSLOG, DO_USRLOG, extra_logstr, lcas_log(), lcas_logfp, logging_syslog, logging_usrlog, and should_close_lcas_logfp. Referenced by lcas_init_and_logfile(). |