Gitweb links:

...log 
http://git.netsurf-browser.org/netsurf.git/shortlog/3fcba68fcffb7fba55be54d1beab9184e96f2b3a
...commit 
http://git.netsurf-browser.org/netsurf.git/commit/3fcba68fcffb7fba55be54d1beab9184e96f2b3a
...tree 
http://git.netsurf-browser.org/netsurf.git/tree/3fcba68fcffb7fba55be54d1beab9184e96f2b3a

The branch, master has been updated
       via  3fcba68fcffb7fba55be54d1beab9184e96f2b3a (commit)
      from  609ee9b71c6c3965451261924e57538f03d80ae2 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commitdiff 
http://git.netsurf-browser.org/netsurf.git/commit/?id=3fcba68fcffb7fba55be54d1beab9184e96f2b3a
commit 3fcba68fcffb7fba55be54d1beab9184e96f2b3a
Author: Daniel Silverstone <[email protected]>
Commit: Daniel Silverstone <[email protected]>

    Logging: Also log the level and category
    
    Signed-off-by: Daniel Silverstone <[email protected]>

diff --git a/utils/log.c b/utils/log.c
index 412e12f..2168e64 100644
--- a/utils/log.c
+++ b/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,


-----------------------------------------------------------------------

Summary of changes:
 utils/log.c |   11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/utils/log.c b/utils/log.c
index 412e12f..2168e64 100644
--- a/utils/log.c
+++ b/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,


-- 
NetSurf Browser

_______________________________________________
netsurf-commits mailing list
[email protected]
http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/netsurf-commits-netsurf-browser.org

Reply via email to