util/debug: expose more raw logging macros

Add raw logging macros for config, perf and debug.
pull/13361/head
Jason Ish 1 year ago committed by Victor Julien
parent 2cb19ad72f
commit 535661139e

@ -228,7 +228,12 @@ void SCLogErr(int x, const char *file, const char *func, const int line, const c
#define SCLogConfig(...) \
SCLog(SC_LOG_CONFIG, __FILE__, __FUNCTION__, __LINE__, _sc_module, __VA_ARGS__)
#define SCLogConfigRaw(file, func, line, ...) \
SCLog(SC_LOG_CONFIG, (file), (func), (line), _sc_module, __VA_ARGS__)
#define SCLogPerf(...) SCLog(SC_LOG_PERF, __FILE__, __FUNCTION__, __LINE__, _sc_module, __VA_ARGS__)
#define SCLogPerfRaw(file, func, line, ...) \
SCLog(SC_LOG_PERF, (file), (func), (line), _sc_module, __VA_ARGS__)
/**
* \brief Macro used to log NOTICE messages.
@ -303,6 +308,8 @@ void SCLogErr(int x, const char *file, const char *func, const int line, const c
*/
#define SCLogDebug(...) \
SCLog(SC_LOG_DEBUG, __FILE__, __FUNCTION__, __LINE__, _sc_module, __VA_ARGS__)
#define SCLogDebugRaw(file, func, line, ...) \
SCLog(SC_LOG_DEBUG, (file), (func), (line), _sc_module, __VA_ARGS__)
/**
* \brief Macro used to log debug messages on function entry. Comes under the

Loading…
Cancel
Save