Derecho  0.9
Distributed systems toolkit for RDMA
Classes | Macros
logger.hpp File Reference
#include <string>
#include <atomic>
#include "spdlog/spdlog.h"
Include dependency graph for logger.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  LoggerFactory
 

Macros

#define dbg_trace(logger, ...)   logger->trace(__VA_ARGS__)
 
#define dbg_default_trace(...)   dbg_trace(LoggerFactory::getDefaultLogger(), __VA_ARGS__)
 
#define dbg_debug(logger, ...)   logger->debug(__VA_ARGS__)
 
#define dbg_default_debug(...)   dbg_debug(LoggerFactory::getDefaultLogger(), __VA_ARGS__)
 
#define dbg_info(logger, ...)   logger->info(__VA_ARGS__)
 
#define dbg_default_info(...)   dbg_info(LoggerFactory::getDefaultLogger(), __VA_ARGS__)
 
#define dbg_warn(logger, ...)   logger->warn(__VA_ARGS__)
 
#define dbg_default_warn(...)   dbg_warn(LoggerFactory::getDefaultLogger(), __VA_ARGS__)
 
#define dbg_error(logger, ...)   logger->error(__VA_ARGS__)
 
#define dbg_default_error(...)   dbg_error(LoggerFactory::getDefaultLogger(), __VA_ARGS__)
 
#define dbg_crit(logger, ...)   logger->critical(__VA_ARGS__)
 
#define dbg_default_crit(...)   dbg_crit(LoggerFactory::getDefaultLogger(), __VA_ARGS__)
 
#define dbg_flush(logger)   logger->flush()
 
#define dbg_default_flush()   LoggerFactory::getDefaultLogger()->flush()
 
#define rls_info(logger, ...)   logger->info(__VA_ARGS__)
 
#define rls_default_info(...)   rls_info(LoggerFactory::getDefaultLogger(), __VA_ARGS__)
 
#define rls_warn(logger, ...)   logger->warn(__VA_ARGS__)
 
#define rls_default_warn(...)   rls_warn(LoggerFactory::getDefaultLogger(), __VA_ARGS__)
 
#define rls_error(logger, ...)   logger->error(__VA_ARGS__)
 
#define rls_default_error(...)   rls_error(LoggerFactory::getDefaultLogger(), __VA_ARGS__)
 
#define rls_crit(logger, ...)   logger->critical(__VA_ARGS__)
 
#define rls_default_crit(...)   rls_crit(LoggerFactory::getDefaultLogger(), __VA_ARGS__)
 
#define rls_flush(logger)   logger->flush()
 
#define rls_default_flush()   LoggerFactory::getDefaultLogger()->flush()
 

Macro Definition Documentation

◆ dbg_crit

#define dbg_crit (   logger,
  ... 
)    logger->critical(__VA_ARGS__)

Definition at line 49 of file logger.hpp.

◆ dbg_debug

#define dbg_debug (   logger,
  ... 
)    logger->debug(__VA_ARGS__)

Definition at line 41 of file logger.hpp.

◆ dbg_default_crit

#define dbg_default_crit (   ...)    dbg_crit(LoggerFactory::getDefaultLogger(), __VA_ARGS__)

Definition at line 50 of file logger.hpp.

◆ dbg_default_debug

#define dbg_default_debug (   ...)    dbg_debug(LoggerFactory::getDefaultLogger(), __VA_ARGS__)

Definition at line 42 of file logger.hpp.

◆ dbg_default_error

#define dbg_default_error (   ...)    dbg_error(LoggerFactory::getDefaultLogger(), __VA_ARGS__)

Definition at line 48 of file logger.hpp.

◆ dbg_default_flush

#define dbg_default_flush ( )    LoggerFactory::getDefaultLogger()->flush()

Definition at line 52 of file logger.hpp.

◆ dbg_default_info

#define dbg_default_info (   ...)    dbg_info(LoggerFactory::getDefaultLogger(), __VA_ARGS__)

Definition at line 44 of file logger.hpp.

◆ dbg_default_trace

#define dbg_default_trace (   ...)    dbg_trace(LoggerFactory::getDefaultLogger(), __VA_ARGS__)

Definition at line 40 of file logger.hpp.

◆ dbg_default_warn

#define dbg_default_warn (   ...)    dbg_warn(LoggerFactory::getDefaultLogger(), __VA_ARGS__)

Definition at line 46 of file logger.hpp.

◆ dbg_error

#define dbg_error (   logger,
  ... 
)    logger->error(__VA_ARGS__)

Definition at line 47 of file logger.hpp.

◆ dbg_flush

#define dbg_flush (   logger)    logger->flush()

Definition at line 51 of file logger.hpp.

◆ dbg_info

#define dbg_info (   logger,
  ... 
)    logger->info(__VA_ARGS__)

Definition at line 43 of file logger.hpp.

◆ dbg_trace

#define dbg_trace (   logger,
  ... 
)    logger->trace(__VA_ARGS__)

Definition at line 39 of file logger.hpp.

◆ dbg_warn

#define dbg_warn (   logger,
  ... 
)    logger->warn(__VA_ARGS__)

Definition at line 45 of file logger.hpp.

◆ rls_crit

#define rls_crit (   logger,
  ... 
)    logger->critical(__VA_ARGS__)

Definition at line 78 of file logger.hpp.

◆ rls_default_crit

#define rls_default_crit (   ...)    rls_crit(LoggerFactory::getDefaultLogger(), __VA_ARGS__)

Definition at line 79 of file logger.hpp.

◆ rls_default_error

#define rls_default_error (   ...)    rls_error(LoggerFactory::getDefaultLogger(), __VA_ARGS__)

Definition at line 77 of file logger.hpp.

◆ rls_default_flush

#define rls_default_flush ( )    LoggerFactory::getDefaultLogger()->flush()

Definition at line 81 of file logger.hpp.

◆ rls_default_info

#define rls_default_info (   ...)    rls_info(LoggerFactory::getDefaultLogger(), __VA_ARGS__)

Definition at line 73 of file logger.hpp.

◆ rls_default_warn

#define rls_default_warn (   ...)    rls_warn(LoggerFactory::getDefaultLogger(), __VA_ARGS__)

Definition at line 75 of file logger.hpp.

◆ rls_error

#define rls_error (   logger,
  ... 
)    logger->error(__VA_ARGS__)

Definition at line 76 of file logger.hpp.

◆ rls_flush

#define rls_flush (   logger)    logger->flush()

Definition at line 80 of file logger.hpp.

◆ rls_info

#define rls_info (   logger,
  ... 
)    logger->info(__VA_ARGS__)

Definition at line 72 of file logger.hpp.

◆ rls_warn

#define rls_warn (   logger,
  ... 
)    logger->warn(__VA_ARGS__)

Definition at line 74 of file logger.hpp.