mirror of
https://github.com/swaywm/sway.git
synced 2025-10-31 22:25:26 -04:00
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).
This commit is contained in:
parent
eb847a1b1c
commit
9f02b0bf16
4 changed files with 52 additions and 0 deletions
|
|
@ -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)));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue