-l - means log to stderr

This commit is contained in:
Eric House 2013-09-14 21:36:51 -07:00
parent de1f1cf681
commit 657d0d2b1f

View file

@ -130,6 +130,9 @@ logf( XW_LogLevel level, const char* format, ... )
RelayConfigs* rc = RelayConfigs::GetConfigs();
useFile = rc->GetValueFor( "LOGFILE_PATH", logFile, sizeof(logFile) );
if ( useFile && 0 == strcmp( "-", logFile ) ) {
useFile = false;
}
if ( useFile ) {
where = fopen( logFile, "a" );