4 * logging.c - Debug/Logging Routines
14 bool gbSyslogDisabled = true;
17 void Log_Error(const char *Format, ...)
21 if( !gbSyslogDisabled )
23 va_start(args, Format);
24 vsyslog(LOG_WARNING, Format, args);
28 va_start(args, Format);
29 fprintf(stderr, "WARNING: ");
30 vfprintf(stderr, Format, args);
31 fprintf(stderr, "\n");
35 void Log_Info(const char *Format, ...)
39 if( !gbSyslogDisabled )
41 va_start(args, Format);
42 vsyslog(LOG_INFO, Format, args);
45 va_start(args, Format);
46 fprintf(stderr, "INFO: ");
47 vfprintf(stderr, Format, args);
48 fprintf(stderr, "\n");