* 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:
@@ -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 )
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user