Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion include/logger.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
#ifndef TOPMODEL_LOGGER_H
#define TOPMODEL_LOGGER_H

#include "ewts/module_constants.h"
#define EWTS_ID EWTS_ID_TOPMODEL
#include "ewts/logger.h"
#include "ewts/log_levels.h"

#define Log(level, ...) EwtsLogModule(EWTS_ID_TOPMODEL, (level), __VA_ARGS__)
#define LOG(level, ...) EwtsLogModule(EWTS_ID_TOPMODEL, (level), __VA_ARGS__)
#define GetLogLevel() EwtsGetLogLevelModule(EWTS_ID_TOPMODEL)
#define IsLoggingEnabled() EwtsIsLoggingEnabledModule(EWTS_ID_TOPMODEL)

#endif /* TOPMODEL_LOGGER_H */
Loading