aboutsummaryrefslogtreecommitdiff
path: root/src/shared/Log.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-08-11 10:53:29 -0500
committermegamage <none@none>2009-08-11 10:53:29 -0500
commit3fa3c8b09897c63efa8ad55243a95ee3eff5e75e (patch)
tree92ba795b7c2e5b54ef5218338104d0f3c6a5dddd /src/shared/Log.cpp
parenta944a0ea4b30dcde2eeb9ac60c8491c417b17f69 (diff)
*Add function Unit::OutDebugInfo for debug.
--HG-- branch : trunk
Diffstat (limited to 'src/shared/Log.cpp')
-rw-r--r--src/shared/Log.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/shared/Log.cpp b/src/shared/Log.cpp
index 8dc23066245..117eabffb4a 100644
--- a/src/shared/Log.cpp
+++ b/src/shared/Log.cpp
@@ -702,6 +702,22 @@ void Log::outDebug( const char * str, ... )
fflush(stdout);
}
+void Log::outStringInLine( const char * str, ... )
+{
+ if( !str )
+ return;
+
+ UTF8PRINTF(stdout,str,);
+
+ if(logfile)
+ {
+ va_list ap;
+ va_start(ap, str);
+ vfprintf(logfile, str, ap);
+ va_end(ap);
+ }
+}
+
void Log::outCommand( uint32 account, const char * str, ... )
{
if( !str )