aboutsummaryrefslogtreecommitdiffstats
path: root/include/log.h
diff options
context:
space:
mode:
authorLibravatar S. Christoffer Eliesen <christoffer@eliesen.no>2015-10-25 00:34:57 +0200
committerLibravatar S. Christoffer Eliesen <christoffer@eliesen.no>2015-10-25 13:14:28 +0100
commit5a70853253633482b09ebdcbde0f4ec7502c7527 (patch)
treeaa6841b0faf26ef4bd01010029b8e3a4e0d31c50 /include/log.h
parentsway/output: Create, move code from handlers.c here. (diff)
downloadsway-5a70853253633482b09ebdcbde0f4ec7502c7527.tar.gz
sway-5a70853253633482b09ebdcbde0f4ec7502c7527.tar.zst
sway-5a70853253633482b09ebdcbde0f4ec7502c7527.zip
log: Add swayc_log, use at a few key places.
swayc_log works just like sway_log, but appends type and name from given container to the log output.
Diffstat (limited to 'include/log.h')
-rw-r--r--include/log.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/log.h b/include/log.h
index f8deaf26..806725a6 100644
--- a/include/log.h
+++ b/include/log.h
@@ -23,4 +23,6 @@ bool _sway_assert(bool condition, const char* format, ...) __attribute__((format
23void error_handler(int sig); 23void error_handler(int sig);
24 24
25void layout_log(const swayc_t *c, int depth); 25void layout_log(const swayc_t *c, int depth);
26const char *swayc_type_string(enum swayc_types type);
27void swayc_log(log_importance_t verbosity, swayc_t *cont, const char* format, ...) __attribute__((format(printf,3,4)));
26#endif 28#endif