NASA Astrobee Robot Software  0.19.1
Flight software for the Astrobee robots operating inside the International Space Station.
logger.h File Reference
#include <ff_common/eigen_vectors.h>
#include <ros/console.h>
#include <glog/logging.h>
#include <sstream>
#include <string>
Include dependency graph for logger.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define USE_ROS_LOGGING
 
#define __FILENAME__   (strrchr(__FILE__, '/') ? strrchr(__FILE__, '/') + 1 : __FILE__)
 
#define LogInfo(msg)
 
#define LogWarning(msg)
 
#define LogError(msg)
 
#define LogFatal(msg)
 
#define LogDebug(msg)
 
#define LogInfoEveryN(n, msg)
 
#define LogWarningEveryN(n, msg)
 
#define LogErrorEveryN(n, msg)
 
#define LogDebugEveryN(n, msg)
 

Macro Definition Documentation

◆ __FILENAME__

#define __FILENAME__   (strrchr(__FILE__, '/') ? strrchr(__FILE__, '/') + 1 : __FILE__)

◆ LogDebug

#define LogDebug (   msg)
Value:
do { \
std::stringstream ss; \
ss << __FILENAME__ << ":" << __LINE__ << ": " << msg << std::endl; \
ROS_DEBUG_STREAM(ss.str()); \
} while (0)

◆ LogDebugEveryN

#define LogDebugEveryN (   n,
  msg 
)
Value:
do { \
static int count = 0; \
++count; \
if (count % n == 0) { \
std::stringstream ss; \
ss << __FILENAME__ << ":" << __LINE__ << ": " << msg << std::endl; \
ROS_DEBUG_STREAM(ss.str()); \
} \
} while (0)

◆ LogError

#define LogError (   msg)
Value:
do { \
std::stringstream ss; \
ss << __FILENAME__ << ":" << __LINE__ << ": " << msg << std::endl; \
ROS_ERROR_STREAM(ss.str()); \
} while (0)

◆ LogErrorEveryN

#define LogErrorEveryN (   n,
  msg 
)
Value:
do { \
static int count = 0; \
++count; \
if (count % n == 0) { \
std::stringstream ss; \
ss << __FILENAME__ << ":" << __LINE__ << ": " << msg << std::endl; \
ROS_ERROR_STREAM(ss.str()); \
} \
} while (0)

◆ LogFatal

#define LogFatal (   msg)
Value:
do { \
std::stringstream ss; \
ss << __FILENAME__ << ":" << __LINE__ << ": " << msg << std::endl; \
ROS_FATAL_STREAM(ss.str()); \
} while (0)

◆ LogInfo

#define LogInfo (   msg)
Value:
do { \
std::stringstream ss; \
ss << __FILENAME__ << ":" << __LINE__ << ": " << msg << std::endl; \
ROS_INFO_STREAM(ss.str()); \
} while (0)

◆ LogInfoEveryN

#define LogInfoEveryN (   n,
  msg 
)
Value:
do { \
static int count = 0; \
++count; \
if (count % n == 0) { \
std::stringstream ss; \
ss << __FILENAME__ << ":" << __LINE__ << ": " << msg << std::endl; \
ROS_INFO_STREAM(ss.str()); \
} \
} while (0)

◆ LogWarning

#define LogWarning (   msg)
Value:
do { \
std::stringstream ss; \
ss << __FILENAME__ << ":" << __LINE__ << ": " << msg << std::endl; \
ROS_WARN_STREAM(ss.str()); \
} while (0)

◆ LogWarningEveryN

#define LogWarningEveryN (   n,
  msg 
)
Value:
do { \
static int count = 0; \
++count; \
if (count % n == 0) { \
std::stringstream ss; \
ss << __FILENAME__ << ":" << __LINE__ << ": " << msg << std::endl; \
ROS_WARN_STREAM(ss.str()); \
} \
} while (0)

◆ USE_ROS_LOGGING

#define USE_ROS_LOGGING
__FILENAME__
#define __FILENAME__
Definition: logger.h:38