esp8266ndn
NDN Arduino library for ESP8266 and more
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
logger.hpp
Go to the documentation of this file.
1 #ifndef ESP8266NDN_LOGGER_HPP
2 #define ESP8266NDN_LOGGER_HPP
3 
4 #include "logging.hpp"
5 
6 #include "../vendor/Streaming.h"
7 
8 #undef min
9 
10 #include "../vendor/PriUint64.h"
11 
12 #define LOGGER(module, ...) \
13  do { \
14  ::esp8266ndn::getLogOutput() << _DEC(millis()) << " [" #module "] " << __VA_ARGS__ << "\n"; \
15  } while (false)
16 
17 #endif // ESP8266NDN_LOGGER_HPP