blob: 78e304069600e8aaf946975a9bf1e72bf32af226 [file] [log] [blame]
Alexander Afanasyev4f9ea482012-03-15 11:57:29 -07001/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil -*- */
2/*
Alexander Afanasyevf3192eb2016-12-19 17:11:20 -08003 * Copyright (c) 2012-2017 University of California, Los Angeles
Alexander Afanasyev4f9ea482012-03-15 11:57:29 -07004 *
Alexander Afanasyev8722d872014-07-02 13:00:29 -07005 * This file is part of ChronoSync, synchronization library for distributed realtime
6 * applications for NDN.
Alexander Afanasyev4f9ea482012-03-15 11:57:29 -07007 *
Alexander Afanasyev8722d872014-07-02 13:00:29 -07008 * ChronoSync is free software: you can redistribute it and/or modify it under the terms
9 * of the GNU General Public License as published by the Free Software Foundation, either
10 * version 3 of the License, or (at your option) any later version.
Alexander Afanasyev4f9ea482012-03-15 11:57:29 -070011 *
Alexander Afanasyev8722d872014-07-02 13:00:29 -070012 * ChronoSync is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
13 * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 * PURPOSE. See the GNU General Public License for more details.
Alexander Afanasyev4f9ea482012-03-15 11:57:29 -070015 *
Alexander Afanasyev8722d872014-07-02 13:00:29 -070016 * You should have received a copy of the GNU General Public License along with
17 * ChronoSync, e.g., in COPYING.md file. If not, see <http://www.gnu.org/licenses/>.
18 *
19 * @author Zhenkai Zhu <http://irl.cs.ucla.edu/~zhenkai/>
20 * @author Chaoyi Bian <bcy@pku.edu.cn>
21 * @author Alexander Afanasyev <http://lasr.cs.ucla.edu/afanasyev/index.html>
Alexander Afanasyev4f9ea482012-03-15 11:57:29 -070022 */
23
Yingdi Yua585d4d2014-09-20 21:55:47 -070024#ifndef CHRONOSYNC_LOGGER_HPP
25#define CHRONOSYNC_LOGGER_HPP
Alexander Afanasyev4f9ea482012-03-15 11:57:29 -070026
Alexander Afanasyev36eb3ed2017-01-11 12:35:58 -080027#include <ndn-cxx/util/logger.hpp>
Alexander Afanasyev4f9ea482012-03-15 11:57:29 -070028
Alexander Afanasyev36eb3ed2017-01-11 12:35:58 -080029#define INIT_LOGGER(name) NDN_LOG_INIT(sync.name)
Alexander Afanasyev4f9ea482012-03-15 11:57:29 -070030
Alexander Afanasyev36eb3ed2017-01-11 12:35:58 -080031#define _LOG_ERROR(x) NDN_LOG_ERROR(x)
32#define _LOG_WARN(x) NDN_LOG_WARN(x)
33#define _LOG_INFO(x) NDN_LOG_INFO(x)
34#define _LOG_DEBUG(x) NDN_LOG_DEBUG(x)
35#define _LOG_TRACE(x) NDN_LOG_TRACE(x)
Alexander Afanasyev4f9ea482012-03-15 11:57:29 -070036
Alexander Afanasyev36eb3ed2017-01-11 12:35:58 -080037#define _LOG_FUNCTION(x) NDN_LOG_TRACE(__FUNCTION__ << "(" << x << ")")
38#define _LOG_FUNCTION_NOARGS NDN_LOG_TRACE(__FUNCTION__ << "()")
Alexander Afanasyev4f9ea482012-03-15 11:57:29 -070039
Yingdi Yua585d4d2014-09-20 21:55:47 -070040#endif // CHRONOSYNC_LOGGER_HPP