logging: expose the log level with a function

The log level needs to exposed so Rust plugins can bootstrap
themselves with the correct login to SCLogNotice!(), etc work
as expected.
pull/5356/head
Jason Ish 5 years ago committed by Victor Julien
parent ac93ab281d
commit 87a91e6aa8

@ -971,6 +971,11 @@ static inline void SCLogSetLogLevel(SCLogInitData *sc_lid, SCLogConfig *sc_lc)
return;
}
SCLogLevel SCLogGetLogLevel(void)
{
return sc_log_global_log_level;
}
static inline const char *SCLogGetDefaultLogFormat(void)
{
const char *prog_ver = GetProgramVersion();

@ -575,4 +575,6 @@ void SCLogRegisterTests(void);
void SCLogLoadConfig(int daemon, int verbose);
SCLogLevel SCLogGetLogLevel(void);
#endif /* __UTIL_DEBUG_H__ */

Loading…
Cancel
Save