|
CAEN Utility
2.0.2
Utilities for CAEN projects
|
Log related functions. More...
Functions | |
| void | c_lsetst (uint64_t time) |
| int32_t | c_lchangefile (FILE *file) |
| int32_t | c_lresumefile (void) |
| void | c_ldeinit (void) |
| int32_t | c_lsetsm (uint32_t sevMask) |
| int32_t | c_lgetsm (uint32_t *sevMask) |
| int32_t | c_lvprintf (const c_locallogger_t *locallogger, c_logger_Severity s, int32_t line, const char *__restrict format, va_list args) |
| int32_t | c_lprintf (const c_locallogger_t *locallogger, c_logger_Severity s, int32_t line, const char *__restrict format,...) |
Log related functions.
| void c_lsetst | ( | uint64_t | time | ) |
Set the start time.
| [in] | time | time in milliseconds since 00:00:00 UTC, January 1, 1970. |
Definition at line 309 of file CAENLogger.c.
| int32_t c_lchangefile | ( | FILE * | file | ) |
Set a new file, already opened. The original file is not close, but its pointer stored. It's up to the caller to close the new file at the end.
| [in] | file | a pointer to FILE, already opened. |
Definition at line 313 of file CAENLogger.c.
| int32_t c_lresumefile | ( | void | ) |
Resume the original file after a call to c_lchangefile().
Definition at line 329 of file CAENLogger.c.
| void c_ldeinit | ( | void | ) |
Close and clear the logging system.
Definition at line 390 of file CAENLogger.c.
| int32_t c_lsetsm | ( | uint32_t | sevMask | ) |
Set the Severity Mask
| [in] | sevMask | the severity mask, a combination of bits specified in c_logger_Severity |
Definition at line 345 of file CAENLogger.c.
| int32_t c_lgetsm | ( | uint32_t * | sevMask | ) |
Set the current Severity Mask
| [out] | sevMask | the severity mask, a combination of bits specified in c_logger_Severity |
Definition at line 350 of file CAENLogger.c.
| int32_t c_lvprintf | ( | const c_locallogger_t * | locallogger, |
| c_logger_Severity | s, | ||
| int32_t | line, | ||
| const char *__restrict | format, | ||
| va_list | args | ||
| ) |
Main logger function. If not initialized, the function will configure the logger. Variable argument list version.
| [in,out] | locallogger | the local logger |
| [in] | s | the severity mask |
| [in] | line | the line, to be filled with standard preprocessor define __LINE__ |
| [in] | format | string that contains a format string that follows the same specifications as format in printf |
| [in] | args | a variable arguments list initialized with va_start |
Definition at line 366 of file CAENLogger.c.
| int32_t c_lprintf | ( | const c_locallogger_t * | locallogger, |
| c_logger_Severity | s, | ||
| int32_t | line, | ||
| const char *__restrict | format, | ||
| ... | |||
| ) |
Main logger function. If not initialized, the function will configure the logger.
| [in,out] | locallogger | the local logger |
| [in] | s | the severity mask |
| [in] | line | the line, to be filled with standard preprocessor define __LINE__ |
| [in] | format | string that contains a format string that follows the same specifications as format in printf |
| [in] | ... | sequence of additional arguments |
Definition at line 358 of file CAENLogger.c.