#include "log.h"
-static bool Is_Daemon;
+static bool Use_Syslog;
static void
Log_Message(int Level, const char *msg)
{
- if (!Is_Daemon) {
+ if (!Use_Syslog) {
/* log to console */
fprintf(stdout, "[%ld:%d %4ld] %s\n", (long)getpid(), Level,
(long)(time(NULL) - NGIRCd_Start), msg);
* Initialitze logging.
* This function is called before the configuration file is read in.
*
- * @param Daemon_Mode Set to true if ngIRCd is running as daemon.
+ * @param Syslog_Mode Set to true if ngIRCd is configured to log to the syslog.
*/
GLOBAL void
-Log_Init(bool Daemon_Mode)
+Log_Init(bool Syslog_Mode)
{
- Is_Daemon = Daemon_Mode;
+ Use_Syslog = Syslog_Mode;
#ifdef SYSLOG
#ifndef LOG_CONS /* Kludge: mips-dec-ultrix4.5 has no LOG_CONS */