Browse Source

- Also log to stdout per default

decke 6 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, ...)
107 107
         return 1;
108 108
     }
109 109
 
110
+    if(fprintf(stdout, "[%s] %s - %s\n", timeinfo, loglevelnames[loglvl], logmsg) < 0)
111
+    {
112
+        va_end(args);
113
+        return 1;
114
+    }
115
+
110 116
     va_end(args);
111 117
 
112 118
     fflush(logfile);

Loading…
Cancel
Save