New log level in use: GW_LOG_ERRNO.
[egate.git] / include / gw-log.h
index d74c1fb..7e78f2f 100644 (file)
@@ -1,15 +1,19 @@
 /*
-   gw-log.h: Logging facilities.
-
-   Europagate, 1994-1995.
-
-   $Log: gw-log.h,v $
-   Revision 1.1  1995/02/09 17:27:11  adam
-   Initial revision
-
-
-   Initial:       Dec  7, 94 (Adam Dickmeiss)
-   Last update:   Dec 13, 94 (Adam Dickmeiss)
+ * gw-log.h: Logging facilities.
+ *
+ * Europagate, 1994-1995.
+ *
+ * $Log: gw-log.h,v $
+ * Revision 1.4  1995/03/27 12:50:40  adam
+ * New level: GW_LOG_ERRNO.
+ *
+ * Revision 1.3  1995/02/23  08:32:11  adam
+ * Changed header.
+ *
+ * Revision 1.1.1.1  1995/02/09  17:27:12  adam
+ * Initial version of email gateway under CVS control.
+ *
+ * Initial:       Dec  7, 94 (Adam Dickmeiss)
  */
 
 #ifndef GW_LOG_H
 #define GW_LOG_WARN  0x02
 #define GW_LOG_ACCT  0x04
 #define GW_LOG_STAT  0x08
+#define GW_LOG_ERRNO 0x10
 
 /* All debug levels */
 #define GW_LOG_DEBUG 0xfff0
-/* Individual debug levels, x sould be in range 0-11 */
-#define GW_LOG_DEBUGN(x) (0x10<<(x))
+/* Individual debug levels, x sould be in range 0-10 */
+#define GW_LOG_DEBUGN(x) (0x20<<(x))
 
 /* All levels on / All levels except debugging */
 #define GW_LOG_ALL   0xffff
@@ -83,7 +88,7 @@ int gw_log (unsigned level, const char *event_type, const char *format, ...);
 
 char *gw_strdup (const char *s);
 /*
-   Works as strdup, which is not defined by ANSI.
+   Works as strdup(3s), which is not defined by ANSI.
  */
 
 
@@ -94,7 +99,7 @@ char *gw_strdup (const char *s);
 
    <appname>   one token
    <session>   one token
-   <date>      five tokens (Tue Dec  6 11:34:21 1994)
+   <date>      one token yymmddhhmmss
    <level>     one token
    <type>      one token