blob: f69ab3d8d9bb39fa318dc2993cefc3c3c6cb4346 [file] [log] [blame]
// Copyright 2019 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef MODEMFWD_LOGGING_H_
#define MODEMFWD_LOGGING_H_
#include <base/logging.h>
#define ELOG_IS_ON() (DCHECK_IS_ON() || ::modemfwd::g_extra_logging)
#define ELOG(level) LOG_IF(level, ELOG_IS_ON())
#define EVLOG(level) VLOG_IF(level, ELOG_IS_ON())
namespace modemfwd {
extern bool g_extra_logging;
} // namespace modemfwd
#endif // MODEMFWD_LOGGING_H_