X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=res%2Blog%2Fgw-log.c;h=828337d44c0fb945952cf1df5fdb138ae1420604;hb=654d28333d817ccf5ad104b7375584e38ba8d5dc;hp=5ea38f850cf26b2ef134317fe27b7cfe3294b104;hpb=3d4b6045b8875099666b99edbf1457c91b5da928;p=egate.git 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,