From bb056e55b1374a72ed7784a461d027fbd6360b40 Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Fri, 8 Sep 2017 21:15:41 +0100 Subject: Sort out the logging so that -v etc do the right thing --- utils/log.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'utils/log.h') diff --git a/utils/log.h b/utils/log.h index 7b5bcc3e8..e73c8c3ee 100644 --- a/utils/log.h +++ b/utils/log.h @@ -47,6 +47,18 @@ typedef bool(nslog_ensure_t)(FILE *fptr); */ extern nserror nslog_init(nslog_ensure_t *ensure, int *pargc, char **argv); +/** + * Set the logging filter. + * + * Compiles and enables the given logging filter. + */ +extern nserror nslog_set_filter(const char *filter); + +/** + * Set the logging filter according to the options. + */ +extern nserror nslog_set_filter_by_options(void); + /* ensure a logging level is defined */ #ifndef NETSURF_LOG_LEVEL #define NETSURF_LOG_LEVEL INFO -- cgit v1.2.3