mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-30 10:26:58 +01:00
-l - means log to stderr
This commit is contained in:
parent
de1f1cf681
commit
657d0d2b1f
1 changed files with 3 additions and 0 deletions
|
@ -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" );
|
||||
|
|
Loading…
Reference in a new issue