34 #ifndef EMANELOGSERVICEPROVIDER_HEADER_ 35 #define EMANELOGSERVICEPROVIDER_HEADER_ 71 virtual void log(
LogLevel level,
const char *fmt, ...)
82 virtual void vlog(
LogLevel level,
const char *fmt, va_list ap) = 0;
100 template <
typename Function>
111 template <
typename Function>
112 void logfn(
LogLevel level, Function fn,
const char *fmt, va_list ap);
121 template <
typename Function>
137 #ifdef VERBOSE_LOGGING 139 #define LOGGER_VERBOSE_LOGGING(logger,level,fmt,args...) \ 140 (logger).log(level,fmt,## args) 142 #define LOGGER_VERBOSE_LOGGING_FN(logger,level,fn) \ 143 (logger).logfn(level,fn) 145 #define LOGGER_VERBOSE_LOGGING_FN_VARGS(logger,level,fn,fmt,args...) \ 146 (logger).logfn(level,fn,fmt,## args) 160 #define LOGGER_VERBOSE_LOGGING(logger,level,fmt,args...) 172 #define LOGGER_VERBOSE_LOGGING_FN(logger,level,fn) 187 #define LOGGER_VERBOSE_LOGGING_FN_VARGS(logger,level,fn,fmt,args...) 199 #define LOGGER_STANDARD_LOGGING(logger,level,fmt,args...) \ 200 (logger).log(level,fmt,## args) 211 #define LOGGER_STANDARD_LOGGING_FN(logger,level,fn) \ 212 (logger).logfn(level,fn) 227 #define LOGGER_STANDARD_LOGGING_FN_VARGS(logger,level,fn,fmt,args...) \ 228 (logger).logfn(level,fn,fmt,## args) 232 #endif //EMANELOGSERVICEPROVIDER_HEADER_
virtual bool isLogAllowed(LogLevel level) const =0
Log service provider interface.
virtual void log(LogLevel level, const char *fmt,...) __attribute__((format(printf
EMANE::NetworkAdapterException __attribute__
virtual void virtual void vlog(LogLevel level, const char *fmt, va_list ap)=0
std::list< std::string > Strings
virtual void log_i(LogLevel level, const Strings &strings)=0
void logfn(LogLevel level, Function fn)
virtual ~LogServiceProvider()