Browse Source

- Also log to stdout per default

master
decke 7 years ago
parent
commit
35871718bd
1 changed files with 6 additions and 0 deletions
  1. 6
    0
      log.c

+ 6
- 0
log.c View File

@@ -107,6 +107,12 @@ int logwrite(int loglvl, const char *logfmt, ...)
return 1;
}

if(fprintf(stdout, "[%s] %s - %s\n", timeinfo, loglevelnames[loglvl], logmsg) < 0)
{
va_end(args);
return 1;
}

va_end(args);

fflush(logfile);

Loading…
Cancel
Save