mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-22 06:21:45 +03:00
Logging: Also log the level and category
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
This commit is contained in:
parent
609ee9b71c
commit
3fcba68fcf
11
utils/log.c
11
utils/log.c
@ -94,9 +94,9 @@ 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(dukky, "Duktape JavaScript Binding");
|
||||
@ -108,8 +108,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,
|
||||
|
Loading…
Reference in New Issue
Block a user