
client identified and passed in environment to handlers; logging through syslogd sorted and working well.
29 lines
1.2 KiB
C
29 lines
1.2 KiB
C
/***********************************************************************\
|
|
* *
|
|
* Project: Gild *
|
|
* log.c *
|
|
* *
|
|
* Purpose: Interface to syslogd. Why do our own logging, *
|
|
* which only adds to sysadmin hassle and confusion, *
|
|
* when we can use the system log? *
|
|
* *
|
|
* Author : Simon Brooke *
|
|
* Copyright: (c) Simon Brooke 1997 *
|
|
* Version : 0.1 *
|
|
* Created : 15th October 1997 *
|
|
* *
|
|
\***********************************************************************/
|
|
|
|
/* $Header$ */
|
|
|
|
#include "gild.h"
|
|
|
|
int log( int level, char *message)
|
|
/* hand this message over to the syslog daemon for recording */
|
|
{
|
|
openlog( GILD_NAME, 0, LOG_DAEMON);
|
|
syslog( level, message);
|
|
closelog();
|
|
}
|
|
|