* 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
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;
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,