diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2016-06-27 02:29:37 -0500 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2016-06-27 02:29:37 -0500 |
| commit | 2cb72214e7805df179e4dd3d13c4d43d5c02345b (patch) | |
| tree | d576aeed92f5819b1e873539e6151509eeec529d /include/log.h | |
| parent | 11e1aaf3ed24af989f369614fe6dd4e3dac68dee (diff) | |
Add get_log_level() to encapsulate v (current log level)
This patch also makes all global variable in log.c static.
Diffstat (limited to 'include/log.h')
| -rw-r--r-- | include/log.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/log.h b/include/log.h index efacf90f..ca8c1fe3 100644 --- a/include/log.h +++ b/include/log.h @@ -11,6 +11,7 @@ typedef enum { void init_log(log_importance_t verbosity); void set_log_level(log_importance_t verbosity); +log_importance_t get_log_level(void); void reset_log_level(void); // returns whether debug logging is on after switching. bool toggle_debug_logging(void); |
