+#include "porting.h"
+#include "config.h"
+
+// Connection
+std::ostream *dout_con_ptr = &dummyout;
+std::ostream *derr_con_ptr = &verbosestream;
+
+// Server
+std::ostream *dout_server_ptr = &infostream;
+std::ostream *derr_server_ptr = &errorstream;
+
+#ifndef SERVER
+// Client
+std::ostream *dout_client_ptr = &infostream;
+std::ostream *derr_client_ptr = &errorstream;
+#endif
+
+#ifdef __ANDROID__
+unsigned int android_log_level_mapping[] = {
+ /* LMT_ERROR */ ANDROID_LOG_ERROR,
+ /* LMT_ACTION */ ANDROID_LOG_WARN,
+ /* LMT_INFO */ ANDROID_LOG_INFO,
+ /* LMT_VERBOSE */ ANDROID_LOG_VERBOSE
+ };
+#endif
+
+std::vector<ILogOutput*> log_outputs[LMT_NUM_VALUES];