EMANE  1.2.1
logserviceprovider.h File Reference
#include "emane/types.h"
#include <cstdarg>
#include "emane/logserviceprovider.inl"

Go to the source code of this file.

Classes

class  EMANE::LogServiceProvider
 Log service provider interface. More...
 

Namespaces

 EMANE
 

Macros

#define LOGGER_VERBOSE_LOGGING(logger, level, fmt, args...)
 
#define LOGGER_VERBOSE_LOGGING_FN(logger, level, fn)
 
#define LOGGER_VERBOSE_LOGGING_FN_VARGS(logger, level, fn, fmt, args...)
 
#define LOGGER_STANDARD_LOGGING(logger, level, fmt, args...)   (logger).log(level,fmt,## args)
 
#define LOGGER_STANDARD_LOGGING_FN(logger, level, fn)   (logger).logfn(level,fn)
 
#define LOGGER_STANDARD_LOGGING_FN_VARGS(logger, level, fn, fmt, args...)   (logger).logfn(level,fn,fmt,## args)
 

Enumerations

enum  EMANE::LogLevel {
  EMANE::NOLOG_LEVEL = 0, EMANE::ABORT_LEVEL = 1, EMANE::ERROR_LEVEL = 2, EMANE::INFO_LEVEL = 3,
  EMANE::DEBUG_LEVEL = 4
}
 

Macro Definition Documentation

◆ LOGGER_STANDARD_LOGGING

#define LOGGER_STANDARD_LOGGING (   logger,
  level,
  fmt,
  args... 
)    (logger).log(level,fmt,## args)

Logs a printf style log message.

Parameters
loggerLogServiceProvider reference
levelLog level of the message
fmtformat string (see printf)
args...Variable data (see printf)

Definition at line 199 of file logserviceprovider.h.

◆ LOGGER_STANDARD_LOGGING_FN

#define LOGGER_STANDARD_LOGGING_FN (   logger,
  level,
  fn 
)    (logger).logfn(level,fn)

Logs log message output from a callable.

Parameters
loggerLogServiceProvider reference
levelLog level of the message
fnCallable object returning Strings
Note
Callable object is executed based on log level.

Definition at line 211 of file logserviceprovider.h.

◆ LOGGER_STANDARD_LOGGING_FN_VARGS

#define LOGGER_STANDARD_LOGGING_FN_VARGS (   logger,
  level,
  fn,
  fmt,
  args... 
)    (logger).logfn(level,fn,fmt,## args)

Logs a printf style log message with appended message output from a callable. Message my be compiled out using ./configure –without-verbose-logging.

Parameters
loggerLogServiceProvider reference
levelLog level of the message
fnCallable object returning Strings
fmtformat string (see printf)
args...Variable data (see printf)
Note
Callable object is executed based on log level.

Definition at line 227 of file logserviceprovider.h.

◆ LOGGER_VERBOSE_LOGGING

#define LOGGER_VERBOSE_LOGGING (   logger,
  level,
  fmt,
  args... 
)

Logs a printf style log message. Message my be compiled out using ./configure –without-verbose-logging.

Parameters
loggerLogServiceProvider reference
levelLog level of the message
fmtformat string (see printf)
args...Variable data (see printf)

Definition at line 160 of file logserviceprovider.h.

◆ LOGGER_VERBOSE_LOGGING_FN

#define LOGGER_VERBOSE_LOGGING_FN (   logger,
  level,
  fn 
)

Logs log message output from a callable. Message my be compiled out using ./configure –without-verbose-logging.

Parameters
loggerLogServiceProvider reference
levelLog level of the message
fnCallable object returning Strings
Note
Callable object is executed based on log level.

Definition at line 172 of file logserviceprovider.h.

◆ LOGGER_VERBOSE_LOGGING_FN_VARGS

#define LOGGER_VERBOSE_LOGGING_FN_VARGS (   logger,
  level,
  fn,
  fmt,
  args... 
)

Logs a printf style log message with appended message output from a callable. Message my be compiled out using ./configure –without-verbose-logging.

Parameters
loggerLogServiceProvider reference
levelLog level of the message
fnCallable object returning Strings
fmtformat string (see printf)
args...Variable data (see printf)
Note
Callable object is executed based on log level.

Definition at line 187 of file logserviceprovider.h.