projects
/
egate.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3d4b604
)
More readable logging format.
author
Adam Dickmeiss
<adam@indexdata.dk>
Thu, 9 Nov 1995 09:54:28 +0000
(09:54 +0000)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Thu, 9 Nov 1995 09:54:28 +0000
(09:54 +0000)
res+log/gw-log.c
patch
|
blob
|
history
diff --git
a/res+log/gw-log.c
b/res+log/gw-log.c
index
5ea38f8
..
828337d
100644
(file)
--- a/
res+log/gw-log.c
+++ b/
res+log/gw-log.c
@@
-47,7
+47,10
@@
* Europagate, 1994-1995.
*
* $Log: gw-log.c,v $
* 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
* 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, ...)
{
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;
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));
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,
app_name, session,
tms.tm_year, 1+tms.tm_mon, tms.tm_mday,
tms.tm_hour, tms.tm_min, tms.tm_sec,