X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=include%2Fgw-log.h;h=fbd95194dba1e6f3b68da4fcf5d56f4556d15df1;hb=b9bf72fa7af887225b50f567f91c06ce4353d0c8;hp=b73729bc96d15235e8bbf5cd6d0ee0dbb50e4541;hpb=3f6af0f3aa9f114cf562c28f2ed0b954e4c5d659;p=egate.git diff --git a/include/gw-log.h b/include/gw-log.h index b73729b..fbd9519 100644 --- a/include/gw-log.h +++ b/include/gw-log.h @@ -1,15 +1,25 @@ /* - gw-log.h: Logging facilities. - - Europagate, 1994-1995. - - gw-log.h,v + * gw-log.h: Logging facilities. + * + * Europagate, 1994-1995. + * + * $Log: gw-log.h,v $ + * Revision 1.6 1995/03/30 07:32:42 adam + * New log-level: GW_LOG_NOTICE. New 2709 function: iso2709_mk. + * + * Revision 1.5 1995/03/28 07:52:35 adam + * Bug fix: Bad log masks. + * + * 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) - Last update: Dec 13, 94 (Adam Dickmeiss) + * Initial: Dec 7, 94 (Adam Dickmeiss) */ #ifndef GW_LOG_H @@ -17,19 +27,21 @@ /* The log level is an unsigned integer value with at least 16 bits */ /* The log levels are defined below */ -#define GW_LOG_FATAL 0x01 -#define GW_LOG_WARN 0x02 -#define GW_LOG_ACCT 0x04 -#define GW_LOG_STAT 0x08 +#define GW_LOG_FATAL 0x01 +#define GW_LOG_WARN 0x02 +#define GW_LOG_ACCT 0x04 +#define GW_LOG_STAT 0x08 +#define GW_LOG_ERRNO 0x10 +#define GW_LOG_NOTICE 0x20 /* 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)) +#define GW_LOG_DEBUG 0xffc0 +/* Individual debug levels, x sould be in range 0-9 */ +#define GW_LOG_DEBUGN(x) (0x40<<(x)) /* All levels on / All levels except debugging */ -#define GW_LOG_ALL 0xffff -#define GW_LOG_DEFAULT 0x0f +#define GW_LOG_ALL 0xffef +#define GW_LOG_DEFAULT 0x2f void gw_log_init (const char *app_name); /* @@ -83,7 +95,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 +106,7 @@ char *gw_strdup (const char *s); one token one token - five tokens (Tue Dec 6 11:34:21 1994) + one token yymmddhhmmss one token one token