CAEN Utility  2.0.2
Utilities for CAEN projects
CAENLogger.h File Reference

Logger implemented in C. More...

#include <types/CAENLoggerTypes.h>
#include <CAENUtility.h>
#include <stdarg.h>
#include <inttypes.h>
#include <stdio.h>
Include dependency graph for CAENLogger.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define LOG_ENV_FILENAME   "CAEN_LOG_FILENAME"
 
#define LOG_ENV_LEVEL   "CAEN_LOG_LEVEL"
 
#define INIT_C_LOGGER(fname, mname)   static const c_locallogger_t __locallogger = { (fname), (mname) }
 
#define vlogMsg(s, format, args)   c_lvprintf(&(__locallogger), (s), (format), (args))
 
#define logMsg(s, ...)   c_lprintf(&(__locallogger), (s), __LINE__, __VA_ARGS__)
 

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,...)
 

Detailed Description

Logger implemented in C.

Author

Definition in file CAENLogger.h.

Macro Definition Documentation

◆ LOG_ENV_FILENAME

#define LOG_ENV_FILENAME   "CAEN_LOG_FILENAME"

Definition at line 60 of file CAENLogger.h.

◆ LOG_ENV_LEVEL

#define LOG_ENV_LEVEL   "CAEN_LOG_LEVEL"

Definition at line 61 of file CAENLogger.h.