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.
This commit is contained in:
S. Christoffer Eliesen 2015-10-25 00:34:57 +02:00
parent c6bb23b7dd
commit 5a70853253
4 changed files with 31 additions and 2 deletions

View file

@ -23,4 +23,6 @@ bool _sway_assert(bool condition, const char* format, ...) __attribute__((format
void error_handler(int sig);
void layout_log(const swayc_t *c, int depth);
const char *swayc_type_string(enum swayc_types type);
void swayc_log(log_importance_t verbosity, swayc_t *cont, const char* format, ...) __attribute__((format(printf,3,4)));
#endif