-/* Copyright (C) 2009, Martin Johansson <martin@fatbob.nu>
- Copyright (C) 2005-2009, Thorvald Natvig <thorvald@natvig.com>
+/* Copyright (C) 2010, Martin Johansson <martin@fatbob.nu>
+ Copyright (C) 2005-2010, Thorvald Natvig <thorvald@natvig.com>
All rights reserved.
{
termprint = terminal;
if (!termprint)
- openlog("uMurmud", LOG_PID, LOG_DAEMON);
+ openlog("uMurmurd", LOG_PID, LOG_DAEMON);
}
void Log_free()
if (termprint)
fprintf(stderr, "%s", buf); /* XXX - other targets for logging */
else
- syslog(LOG_ALERT, buf);
+ syslog(LOG_WARNING, buf);
}
void Log_info(const char *logstring, ...)
if (termprint)
fprintf(stderr, "%s", buf); /* XXX - other targets for logging */
else
- syslog(LOG_ALERT, buf);
+ syslog(LOG_INFO, buf);
}
#ifdef DEBUG
if (termprint)
fprintf(stderr, "%s", buf); /* XXX - other targets for logging */
else
- syslog(LOG_INFO, buf);
+ syslog(LOG_DEBUG, buf);
}
#endif
if (termprint)
fprintf(stderr, "%s", buf); /* XXX - other targets for logging */
else
- syslog(LOG_INFO, buf);
+ syslog(LOG_CRIT, buf);
exit(1);
}