chromium/third_party/angle/third_party/glmark2/src/src/libmatrix/log.cc

//
// Copyright (c) 2010-2012 Linaro Limited
//
// All rights reserved. This program and the accompanying materials
// are made available under the terms of the MIT License which accompanies
// this distribution, and is available at
// http://www.opensource.org/licenses/mit-license.php
//
// Contributors:
//     Alexandros Frantzis <[email protected]>
//     Jesse Barker <[email protected]>
//
#include <cstdio>
#include <cstdarg>
#include <string>
#include <sstream>
#include <iostream>
#include "log.h"

#ifdef ANDROID
#include <android/log.h>
#endif

#ifdef _WIN32
// On windows 'isatty' is found in <io.h>
#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()
{}