blob: 24d9f9e407bee4fe6ac349dc4f0106cbabe9e705 [file] [log] [blame] [edit]
// Copyright 2019 The ChromiumOS Authors
// 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 {
constexpr char kModemfwdLogDirectory[] = "/var/log/modemfwd";
extern bool g_extra_logging;
} // namespace modemfwd
#endif // MODEMFWD_LOGGING_H_