diff options
author | S. Christoffer Eliesen <christoffer@eliesen.no> | 2015-10-26 13:41:45 +0100 |
---|---|---|
committer | S. Christoffer Eliesen <christoffer@eliesen.no> | 2015-10-27 14:37:44 +0100 |
commit | 9f02b0bf16972dfb7a18610e5096d4576e447a48 (patch) | |
tree | b128d385d9c1889a9ad8e57751e3aab66c2994dc /include/log.h | |
parent | Merge pull request #204 from sce/misc_stuff (diff) | |
download | sway-9f02b0bf16972dfb7a18610e5096d4576e447a48.tar.gz sway-9f02b0bf16972dfb7a18610e5096d4576e447a48.tar.zst sway-9f02b0bf16972dfb7a18610e5096d4576e447a48.zip |
commands: Learn 'debuglog'.
Replicates i3 option. Verbosity level given as command line argument
becomes default log level, and using 'debuglog toggle' switches back and
forth between default and debug (or L_ERROR and debug if default is also
L_DEBUG).
Diffstat (limited to 'include/log.h')
-rw-r--r-- | include/log.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/log.h b/include/log.h index 806725a6..4b769c93 100644 --- a/include/log.h +++ b/include/log.h | |||
@@ -11,6 +11,10 @@ typedef enum { | |||
11 | } log_importance_t; | 11 | } log_importance_t; |
12 | 12 | ||
13 | void init_log(log_importance_t verbosity); | 13 | void init_log(log_importance_t verbosity); |
14 | void set_log_level(log_importance_t verbosity); | ||
15 | void reset_log_level(void); | ||
16 | // returns whether debug logging is on after switching. | ||
17 | bool toggle_debug_logging(void); | ||
14 | void sway_log_colors(int mode); | 18 | void sway_log_colors(int mode); |
15 | void sway_log(log_importance_t verbosity, const char* format, ...) __attribute__((format(printf,2,3))); | 19 | void sway_log(log_importance_t verbosity, const char* format, ...) __attribute__((format(printf,2,3))); |
16 | void sway_log_errno(log_importance_t verbosity, char* format, ...) __attribute__((format(printf,2,3))); | 20 | void sway_log_errno(log_importance_t verbosity, char* format, ...) __attribute__((format(printf,2,3))); |