summaryrefslogtreecommitdiff
path: root/utils/log.c
diff options
context:
space:
mode:
Diffstat (limited to 'utils/log.c')
-rw-r--r--utils/log.c18
1 files changed, 12 insertions, 6 deletions
diff --git a/utils/log.c b/utils/log.c
index e267b3179..a083b5720 100644
--- a/utils/log.c
+++ b/utils/log.c
@@ -94,11 +94,14 @@ static const char *nslog_gettime(void)
NSLOG_DEFINE_CATEGORY(netsurf, "NetSurf default logging");
NSLOG_DEFINE_CATEGORY(llcache, "Low level cache");
-NSLOG_DEFINE_CATEGORY(fetch, "objet fetching");
-NSLOG_DEFINE_CATEGORY(plot, "rendering system");
-NSLOG_DEFINE_CATEGORY(schedule, "scheduler");
+NSLOG_DEFINE_CATEGORY(fetch, "Object fetching");
+NSLOG_DEFINE_CATEGORY(plot, "Rendering system");
+NSLOG_DEFINE_CATEGORY(schedule, "Scheduler");
NSLOG_DEFINE_CATEGORY(fbtk, "Framebuffer toolkit");
NSLOG_DEFINE_CATEGORY(layout, "Layout");
+NSLOG_DEFINE_CATEGORY(flex, "Flex");
+NSLOG_DEFINE_CATEGORY(dukky, "Duktape JavaScript Binding");
+NSLOG_DEFINE_CATEGORY(jserrors, "JavaScript error messages");
static void
netsurf_render_log(void *_ctx,
@@ -107,8 +110,11 @@ netsurf_render_log(void *_ctx,
va_list args)
{
fprintf(logfile,
- "%s %.*s:%i %.*s: ",
+ "%s [%s %.*s] %.*s:%i %.*s: ",
nslog_gettime(),
+ nslog_short_level_name(ctx->level),
+ ctx->category->namelen,
+ ctx->category->name,
ctx->filenamelen,
ctx->filename,
ctx->lineno,
@@ -280,7 +286,7 @@ nserror nslog_init(nslog_ensure_t *ensure, int *pargc, char **argv)
/* exported interface documented in utils/log.h */
nserror
-nslog_set_filter_by_options()
+nslog_set_filter_by_options(void)
{
if (verbose_log)
return nslog_set_filter(nsoption_charp(verbose_filter));
@@ -290,7 +296,7 @@ nslog_set_filter_by_options()
/* exported interface documented in utils/log.h */
void
-nslog_finalise()
+nslog_finalise(void)
{
NSLOG(netsurf, INFO,
"Finalising logging, please report any further messages");