#include <cstdio>
#include <cstdarg>
#include <string>
#include <sstream>
#include <iostream>
#include "log.h"
#ifdef ANDROID
#include <android/log.h>
#endif
#ifdef _WIN32
#include <io.h>
#else
#include <unistd.h>
#endif
string;
const string Log::continuation_prefix("\x10");
string Log::appname_;
bool Log::do_debug_(false);
std::ostream* Log::extra_out_(0);
static const string terminal_color_normal("\033[0m");
static const string terminal_color_red("\033[1;31m");
static const string terminal_color_cyan("\033[36m");
static const string terminal_color_yellow("\033[33m");
static const string empty;
static void
print_prefixed_message(std::ostream& stream, const string& color, const string& prefix,
const string& fmt, va_list ap)
{ … }
void
Log::info(const char *fmt, ...)
{ … }
void
Log::debug(const char *fmt, ...)
{ … }
void
Log::error(const char *fmt, ...)
{ … }
void
Log::flush()
{ … }