summaryrefslogtreecommitdiffstats
path: root/source/cLog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/cLog.cpp')
-rw-r--r--source/cLog.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/cLog.cpp b/source/cLog.cpp
index 5e79b48bf..372616be8 100644
--- a/source/cLog.cpp
+++ b/source/cLog.cpp
@@ -9,6 +9,9 @@
#include "cIsThread.h"
+#if defined(ANDROID_NDK)
+#include <android/log.h>
+#endif
@@ -97,6 +100,10 @@ void cLog::ClearLog()
void cLog::Log(const char * a_Format, va_list argList)
{
+#if defined(ANDROID_NDK)
+ __android_log_vprint(ANDROID_LOG_ERROR,"MCServer", a_Format, argList);
+ return; // This is as far as android goes
+#endif
AString Message;
AppendVPrintf(Message, a_Format, argList);