12 #include <compilerDependencies.h>
18 typedef enum { logLevelAll = 0, logLevelTrace, logLevelDebug, logLevelInfo,
19 logLevelWarn, logLevelError, logLevelFatal, logLevelOff
41 epicsShareFunc
void pvAccessLog(pvAccessLogLevel level,
const char* format, ...) EPICS_PRINTF_STYLE(2, 3);
42 epicsShareFunc
void pvAccessSetLogLevel(pvAccessLogLevel level);
43 epicsShareFunc
bool pvAccessIsLoggable(pvAccessLogLevel level);
45 #if defined (__GNUC__) && __GNUC__ < 3
46 #define LOG(level, format, ARGS...) pvAccessLog(level, format, ##ARGS)
48 #define LOG(level, format, ...) pvAccessLog(level, format, ##__VA_ARGS__)
50 #define SET_LOG_LEVEL(level) pvAccessSetLogLevel(level)
51 #define IS_LOGGABLE(level) pvAccessIsLoggable(level)