2 * Test of logging facilities.
4 * Europagate, 1994-1995.
6 * $Log: gw-log-test.c,v $
7 * Revision 1.4 1995/04/10 13:20:25 adam
8 * Use gettimeofday(2) instead of time(2) to get log time in milliseconds.
10 * Revision 1.3 1995/02/23 08:32:21 adam
13 * Revision 1.1.1.1 1995/02/09 17:27:12 adam
14 * Initial version of email gateway under CVS control.
16 * Initial: Dec 7, 94 (Adam Dickmeiss)
26 int main (int argc, char **argv)
30 gw_log_file (GW_LOG_ALL, "all.log");
31 gw_log_file (GW_LOG_WARN, "warn.log");
33 gw_log (GW_LOG_ALL, "Msg", "Hi all except WARN");
34 gw_log (GW_LOG_WARN, "Msg", "Hi WARN");
36 gw_log (GW_LOG_ALL, "Msg", "Hi all, a");
37 gw_log (GW_LOG_STAT, "Msg", "Hi stat, a");
38 gw_log_file (GW_LOG_WARN, "warn.log");
39 gw_log_file (GW_LOG_FATAL, NULL);
40 gw_log (GW_LOG_ALL, "Msg", "Hi all, b");
41 gw_log (GW_LOG_STAT, "Msg", "Hi stat, b");
42 gw_log (GW_LOG_WARN, "Msg", "Hi warn, b");