logging: allow reopening stderr

LOG_OpenFileLog(NULL) can be now used to reopen stderr.
This commit is contained in:
Miroslav Lichvar
2018-08-28 14:10:21 +02:00
parent 6847536669
commit eb8c9ad601
2 changed files with 8 additions and 4 deletions

View File

@@ -99,7 +99,7 @@ extern void LOG_Message(LOG_Severity severity, const char *format, ...);
*/
extern void LOG_SetDebugLevel(int level);
/* Log messages to a file instead of stderr */
/* Log messages to a file instead of stderr, or stderr again if NULL */
extern void LOG_OpenFileLog(const char *log_file);
/* Log messages to syslog instead of stderr */