summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2019-05-06 10:16:48 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2019-05-06 10:16:48 +0100
commit6fdc692aa523a642770747042c82153933fa734c (patch)
treee05e04e252662d595595bbc2f534113f357b6e5f /include
parent1be9127ee70d4850f54b2e7b21bdd06f465bfe08 (diff)
downloadnetsurf-6fdc692aa523a642770747042c82153933fa734c.tar.gz
netsurf-6fdc692aa523a642770747042c82153933fa734c.tar.bz2
Support DEBUG log level in console_log
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
Diffstat (limited to 'include')
-rw-r--r--include/netsurf/console.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/include/netsurf/console.h b/include/netsurf/console.h
index 31ed0e787..dead3fd2e 100644
--- a/include/netsurf/console.h
+++ b/include/netsurf/console.h
@@ -49,16 +49,19 @@ typedef enum {
*/
BW_CS_FLAG_FOLDABLE = 1 << 0,
+ /** Logged at the 'debug' level, please use only one of the LEVEL flags */
+ BW_CS_FLAG_LEVEL_DEBUG = 0 << 1,
/** Logged at the 'log' level, please only use one of the LEVEL flags */
- BW_CS_FLAG_LEVEL_LOG = 0 << 1,
+ BW_CS_FLAG_LEVEL_LOG = 1 << 1,
/** Logged at the 'info' level, please use only one of the LEVEL flags */
- BW_CS_FLAG_LEVEL_INFO = 1 << 1,
+ BW_CS_FLAG_LEVEL_INFO = 2 << 1,
/** Logged at the 'warn' level, please use only one of the LEVEL flags */
- BW_CS_FLAG_LEVEL_WARN = 2 << 1,
+ BW_CS_FLAG_LEVEL_WARN = 3 << 1,
/** Logged at the 'error' level, please use only one of the LEVEL flags */
- BW_CS_FLAG_LEVEL_ERROR = 3 << 1,
+ BW_CS_FLAG_LEVEL_ERROR = 4 << 1,
+ /* Levels 5, 6, 7 unused as yet */
/** Mask for the error level to allow easy comparison using the above */
- BW_CS_FLAG_LEVEL_MASK = 3 << 1,
+ BW_CS_FLAG_LEVEL_MASK = 7 << 1,
} browser_window_console_flags;
#endif /* _NETSURF_CONSOLE_H_ */