diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2017-09-08 21:15:41 +0100 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2017-09-08 21:15:54 +0100 |
commit | bb056e55b1374a72ed7784a461d027fbd6360b40 (patch) | |
tree | 160ec9e564197efb65e4115e3907094fdc75ba6e /utils/log.h | |
parent | 8b88e440905708ad9354fb72afff206d6208a760 (diff) | |
download | netsurf-bb056e55b1374a72ed7784a461d027fbd6360b40.tar.gz netsurf-bb056e55b1374a72ed7784a461d027fbd6360b40.tar.bz2 |
Sort out the logging so that -v etc do the right thing
Diffstat (limited to 'utils/log.h')
-rw-r--r-- | utils/log.h | 12 |
1 files changed, 12 insertions, 0 deletions
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 |