79 time_t now = time((time_t *)NULL);
81 time_tmp = localtime(&now);
82 if (time_tmp != NULL) {
91 if (time_buf[0] != 0) {
103 if (time_buf[0] != 0) {
104 fputs(time_buf, stderr);
114 perror(
"tried to close log file after SIGHUP in logger.c:LOG()");
119 perror(
"tried to open log file after SIGHUP in logger.c:LOG()");
124 setvbuf(
logfile, NULL, _IOLBF, 0);
128 if (time_buf[0] != 0) {
void clean_tmp_files(void)
static const char *const loglevel_names[]
char * log_timestamp_format
void emergency_save(int flag)
EXTERN long trying_emergency_save
void LOG(LogLevel logLevel, const char *format,...)