blob: 241b732c8997f246f2750ec428ef58aedb03b0d3 [file] [log] [blame]
akmhoque674b0b12014-05-20 14:33:28 -05001#ifndef NLSR_LOGGER_HPP
2#define NLSR_LOGGER_HPP
3
4#include <log4cxx/logger.h>
5
6
7#define INIT_LOGGER(name) \
8 static log4cxx::LoggerPtr staticModuleLogger = log4cxx::Logger::getLogger(name)
9
10#define _LOG_DEBUG(x) \
11 LOG4CXX_DEBUG(staticModuleLogger,x)
12
13#define _LOG_INFO(x) \
14 LOG4CXX_INFO(staticModuleLogger, x)
15
16void
17INIT_LOGGERS(const std::string& logDir);
18
19#endif // NLSR_LOGGER_HPP