* Implement Log::outString that takes no arguments and just prints \n - on request from megamage (makes MaNGOS merging easier).

--HG--
branch : trunk
This commit is contained in:
XTZGZoReX
2009-03-25 15:55:00 +01:00
parent aad61f777c
commit 6f4ba8bb0d
2 changed files with 13 additions and 0 deletions
+12
View File
@@ -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 )
+1
View File
@@ -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);