diff options
-rw-r--r-- | src/shared/Log.cpp | 12 | ||||
-rw-r--r-- | src/shared/Log.h | 1 |
2 files changed, 13 insertions, 0 deletions
diff --git a/src/shared/Log.cpp b/src/shared/Log.cpp index 401394af1a5..e79ea12933d 100644 --- a/src/shared/Log.cpp +++ b/src/shared/Log.cpp @@ -404,6 +404,18 @@ void Log::outString( const char * str, ... ) fflush(stdout); } +void Log::outString( ) +{ + printf( "\n" ); + if(logfile) + { + outTimestamp(logfile); + fprintf(logfile, "\n" ); + fflush(logfile); + } + fflush(stdout); +} + void Log::outCrash( const char * err, ... ) { if( !err ) diff --git a/src/shared/Log.h b/src/shared/Log.h index a0220b1bce7..78261470174 100644 --- a/src/shared/Log.h +++ b/src/shared/Log.h @@ -97,6 +97,7 @@ class Log : public Trinity::Singleton<Log, Trinity::ClassLevelLockable<Log, ZThr void outDB( uint8 type, const char * str, ... ) ATTR_PRINTF(3,4); void outString( const char * str, ... ) ATTR_PRINTF(2,3); + void outString( ); void outError( const char * err, ... ) ATTR_PRINTF(2,3); void outCrash( const char * err, ... ) ATTR_PRINTF(2,3); void outBasic( const char * str, ... ) ATTR_PRINTF(2,3); |