1// Copyright (c) 2013 The Chromium OS Authors. All rights reserved. 2// Use of this source code is governed by a BSD-style license that can be 3// found in the LICENSE file. 4 5#ifndef CHROMIUMOS_WIDE_PROFILING_MYBASE_BASE_LOGGING_H_ 6#define CHROMIUMOS_WIDE_PROFILING_MYBASE_BASE_LOGGING_H_ 7 8#include <errno.h> // for errno 9#include <string.h> // for strerror 10 11#include <iostream> 12#include <sstream> 13#include <string> 14 15#include "android-base/logging.h" 16 17// Emulate Chrome-like logging. 18 19namespace logging { 20 21extern bool gVlogEnabled; 22 23} // namespace logging 24 25#define VLOG(level) ::logging::gVlogEnabled && LOG(INFO) 26 27#define DLOG(x) android::base::kEnableDChecks && LOG(x) 28#define DVLOG(x) android::base::kEnableDChecks && VLOG(x) 29 30#endif // CHROMIUMOS_WIDE_PROFILING_MYBASE_BASE_LOGGING_H_ 31