aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2015-10-27 13:51:00 -0400
committerDrew DeVault <sir@cmpwn.com>2015-10-27 13:51:00 -0400
commit36526e8cb2bfdfaf0b6c1f5679b8cf7a1f0db27c (patch)
treefdef312778092e9588dc3a1b4aa8d174a6398b2d /include
parenteb847a1b1ce122f6621de0fb76e381bf0d10b317 (diff)
parent48c5325909f86e36e0afb99affac8f576254ab07 (diff)
Merge pull request #206 from sce/debuglog
commands: Learn 'debuglog'.
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)));