aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorS. Christoffer Eliesen <christoffer@eliesen.no>2015-10-26 13:41:45 +0100
committerS. Christoffer Eliesen <christoffer@eliesen.no>2015-10-27 14:37:44 +0100
commit9f02b0bf16972dfb7a18610e5096d4576e447a48 (patch)
treeb128d385d9c1889a9ad8e57751e3aab66c2994dc /include
parenteb847a1b1ce122f6621de0fb76e381bf0d10b317 (diff)
downloadsway-9f02b0bf16972dfb7a18610e5096d4576e447a48.tar.xz
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')
-rw-r--r--include/log.h4
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 {
} log_importance_t;
void init_log(log_importance_t verbosity);
+void set_log_level(log_importance_t verbosity);
+void reset_log_level(void);
+// returns whether debug logging is on after switching.
+bool toggle_debug_logging(void);
void sway_log_colors(int mode);
void sway_log(log_importance_t verbosity, const char* format, ...) __attribute__((format(printf,2,3)));
void sway_log_errno(log_importance_t verbosity, char* format, ...) __attribute__((format(printf,2,3)));