From 654d28333d817ccf5ad104b7375584e38ba8d5dc Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 9 Nov 1995 09:54:28 +0000 Subject: [PATCH] More readable logging format. --- res+log/gw-log.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/res+log/gw-log.c b/res+log/gw-log.c index 5ea38f8..828337d 100644 --- a/res+log/gw-log.c +++ b/res+log/gw-log.c @@ -47,7 +47,10 @@ * Europagate, 1994-1995. * * $Log: gw-log.c,v $ - * Revision 1.10 1995/05/16 09:40:48 adam + * Revision 1.11 1995/11/09 09:54:28 adam + * More readable logging format. + * + * Revision 1.10 1995/05/16 09:40:48 adam * LICENSE. * * Revision 1.9 1995/04/19 12:12:06 adam @@ -185,7 +188,7 @@ int gw_log_file (unsigned level_a, const char *fname_a) int gw_log (unsigned level_a, const char *event_type, const char *format, ...) { - static char emit_str[2048]; + static char emit_str[4096]; struct file_mask *list; struct timeval tv; struct timezone tz; @@ -203,7 +206,7 @@ int gw_log (unsigned level_a, const char *event_type, const char *format, ...) gettimeofday (&tv, &tz); memcpy (&tms, localtime (&tv.tv_sec), sizeof(tms)); - sprintf (emit_str, "%s %d %02d%02d%02d%02d%02d%02d%03d %d %s ", + sprintf (emit_str, "%s %d %02d%02d%02d %02d%02d%02d %03d %d %s ", app_name, session, tms.tm_year, 1+tms.tm_mon, tms.tm_mday, tms.tm_hour, tms.tm_min, tms.tm_sec, -- 1.7.10.4