File gpi_logging.h

Defines

EXTERN_C_START
EXTERN_C_END
LOG_DEBUG(...) gpi_log("cocotb.gpi", GPIDebug, __FILE__, __func__, __LINE__, __VA_ARGS__);
LOG_INFO(...) gpi_log("cocotb.gpi", GPIInfo, __FILE__, __func__, __LINE__, __VA_ARGS__);
LOG_WARN(...) gpi_log("cocotb.gpi", GPIWarning, __FILE__, __func__, __LINE__, __VA_ARGS__);
LOG_ERROR(...) gpi_log("cocotb.gpi", GPIError, __FILE__, __func__, __LINE__, __VA_ARGS__);
LOG_CRITICAL(...)

do { \

gpi_log(“cocotb.gpi”, GPICritical, __FILE__, __func__, __LINE__, __VA_ARGS__); \

exit(1); \

} while (0)


Enums

enum gpi_log_levels

Values:

enumerator GPIDebug = 10
enumerator GPIInfo = 20
enumerator GPIWarning = 30
enumerator GPIError = 40
enumerator GPICritical = 50

Functions

void set_log_handler(void *handler)
void clear_log_handler(void)
void set_log_filter(void *filter)
void clear_log_filter(void)
void set_log_level(enum gpi_log_levels new_level)
void gpi_log(const char *name, enum gpi_log_levels level, const char *pathname, const char *funcname, long lineno, const char *msg, ...)