|
|
@ -56,6 +56,7 @@ void f2b_log_msg(log_msgtype_t l, const char *fmt, ...) { |
|
|
|
default: |
|
|
|
default: |
|
|
|
case log_stderr: |
|
|
|
case log_stderr: |
|
|
|
logfile = stderr; |
|
|
|
logfile = stderr; |
|
|
|
|
|
|
|
/* fallthru */ |
|
|
|
case log_file: |
|
|
|
case log_file: |
|
|
|
strftime(when, sizeof(when), "%F %H:%M:%S", localtime(&now)); |
|
|
|
strftime(when, sizeof(when), "%F %H:%M:%S", localtime(&now)); |
|
|
|
fprintf(logfile, "%s [%s] %s\n", when, loglevels[l], msg); |
|
|
|
fprintf(logfile, "%s [%s] %s\n", when, loglevels[l], msg); |
|
|
|