43 static time_t last_t = 0;
47 gettimeofday(&
now,
nullptr);
48 if (
now.tv_sec != last_t) {
50 time_t tmp =
now.tv_sec;
52 strftime(buf, 127,
"%Y/%m/%d %H:%M:%S", tm);
69 va_start(args, format);
70 vfprintf(stderr, format, args);
75error(
char *format,...)
78 va_start(args, format);
79 vfprintf(stderr, format, args);
87 va_start(args, format);
88 vfprintf(stderr, format, args);
void log(char *format,...)
void error(char *format,...)
void warn(char *format,...)
const char * LogTime(void)
SQUIDCEXTERN int log_enabled