MRPT  2.0.4
Classes | Namespaces | Macros | Typedefs | Enumerations | Functions
system/COutputLogger.h File Reference
#include <mrpt/core/Clock.h>
#include <mrpt/system/CTicTac.h>
#include <mrpt/system/os.h>
#include <mrpt/typemeta/TEnumType.h>
#include <array>
#include <deque>
#include <functional>
#include <iosfwd>
#include <sstream>
#include <string>
#include <string_view>
Include dependency graph for system/COutputLogger.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  mrpt::system::COutputLogger
 Versatile class for consistent logging and management of output messages. More...
 
struct  mrpt::system::COutputLogger::TMsg
 Struct responsible of holding information relevant to the message (in std::string form) issued by the user. More...
 
struct  mrpt::system::COutputLoggerStreamWrapper
 For use in MRPT_LOG_DEBUG_STREAM(), etc. More...
 

Namespaces

 mrpt::system
 

Macros

#define INTERNAL_MRPT_LOG(_LVL, _STRING)   this->logStr(_LVL, _STRING)
 
#define INTERNAL_MRPT_LOG_ONCE(_LVL, _STRING)
 
#define INTERNAL_MRPT_LOG_FMT(_LVL, _FMT_STRING, ...)
 
#define INTERNAL_MRPT_LOG_STREAM(_LVL, __CONTENTS)
 
#define INTERNAL_MRPT_LOG_THROTTLE(_LVL, _PERIOD_SECONDS, _STRING)
 
#define INTERNAL_MRPT_LOG_THROTTLE_STREAM(_LVL, _PERIOD_SECONDS, __CONTENTS)
 
#define INTERNAL_MRPT_LOG_THROTTLE_FMT( _LVL, _PERIOD_SECONDS, _FMT_STRING, ...)
 
#define MRPT_LOG_DEBUG(_STRING)   INTERNAL_MRPT_LOG(::mrpt::system::LVL_DEBUG, _STRING)
 Use: MRPT_LOG_DEBUG("message"); More...
 
#define MRPT_LOG_INFO(_STRING)   INTERNAL_MRPT_LOG(::mrpt::system::LVL_INFO, _STRING)
 
#define MRPT_LOG_WARN(_STRING)   INTERNAL_MRPT_LOG(::mrpt::system::LVL_WARN, _STRING)
 
#define MRPT_LOG_ERROR(_STRING)   INTERNAL_MRPT_LOG(::mrpt::system::LVL_ERROR, _STRING)
 
#define MRPT_LOG_ONCE_DEBUG(_STRING)   INTERNAL_MRPT_LOG_ONCE(::mrpt::system::LVL_DEBUG, _STRING)
 Use: MRPT_LOG_ONCE_DEBUG("once-only message"); More...
 
#define MRPT_LOG_ONCE_INFO(_STRING)   INTERNAL_MRPT_LOG_ONCE(::mrpt::system::LVL_INFO, _STRING)
 
#define MRPT_LOG_ONCE_WARN(_STRING)   INTERNAL_MRPT_LOG_ONCE(::mrpt::system::LVL_WARN, _STRING)
 
#define MRPT_LOG_ONCE_ERROR(_STRING)   INTERNAL_MRPT_LOG_ONCE(::mrpt::system::LVL_ERROR, _STRING)
 
#define MRPT_LOG_THROTTLE_DEBUG(_PERIOD_SECONDS, _STRING)
 Use: MRPT_LOG_THROTTLE_DEBUG(5.0, "message"); More...
 
#define MRPT_LOG_THROTTLE_INFO(_PERIOD_SECONDS, _STRING)
 
#define MRPT_LOG_THROTTLE_WARN(_PERIOD_SECONDS, _STRING)
 
#define MRPT_LOG_THROTTLE_ERROR(_PERIOD_SECONDS, _STRING)
 
#define MRPT_LOG_DEBUG_FMT(_FMT_STRING, ...)   INTERNAL_MRPT_LOG_FMT(::mrpt::system::LVL_DEBUG, _FMT_STRING, __VA_ARGS__)
 Use: MRPT_LOG_DEBUG_FMT("i=%u", i); More...
 
#define MRPT_LOG_INFO_FMT(_FMT_STRING, ...)   INTERNAL_MRPT_LOG_FMT(::mrpt::system::LVL_INFO, _FMT_STRING, __VA_ARGS__)
 
#define MRPT_LOG_WARN_FMT(_FMT_STRING, ...)   INTERNAL_MRPT_LOG_FMT(::mrpt::system::LVL_WARN, _FMT_STRING, __VA_ARGS__)
 
#define MRPT_LOG_ERROR_FMT(_FMT_STRING, ...)   INTERNAL_MRPT_LOG_FMT(::mrpt::system::LVL_ERROR, _FMT_STRING, __VA_ARGS__)
 
#define MRPT_LOG_DEBUG_STREAM(__CONTENTS)   INTERNAL_MRPT_LOG_STREAM(::mrpt::system::LVL_DEBUG, __CONTENTS)
 Use: MRPT_LOG_DEBUG_STREAM("Var=" << value << " foo=" << foo_var); More...
 
#define MRPT_LOG_INFO_STREAM(__CONTENTS)   INTERNAL_MRPT_LOG_STREAM(::mrpt::system::LVL_INFO, __CONTENTS)
 
#define MRPT_LOG_WARN_STREAM(__CONTENTS)   INTERNAL_MRPT_LOG_STREAM(::mrpt::system::LVL_WARN, __CONTENTS)
 
#define MRPT_LOG_ERROR_STREAM(__CONTENTS)   INTERNAL_MRPT_LOG_STREAM(::mrpt::system::LVL_ERROR, __CONTENTS)
 
#define MRPT_LOG_THROTTLE_DEBUG_STREAM(_PERIOD_SECONDS, __CONTENTS)
 Usage: MRPT_LOG_THROTTLE_DEBUG_STREAM(5.0, "Var=" << value << " foo=" << foo_var); More...
 
#define MRPT_LOG_THROTTLE_INFO_STREAM(_PERIOD_SECONDS, __CONTENTS)
 
#define MRPT_LOG_THROTTLE_WARN_STREAM(_PERIOD_SECONDS, __CONTENTS)
 
#define MRPT_LOG_THROTTLE_ERROR_STREAM(_PERIOD_SECONDS, __CONTENTS)
 
#define MRPT_LOG_THROTTLE_DEBUG_FMT(_PERIOD_SECONDS, _FMT_STRING, ...)
 Usage: MRPT_LOG_THROTTLE_DEBUG_FMT(5.0, "i=%u", i); More...
 
#define MRPT_LOG_THROTTLE_INFO_FMT(_PERIOD_SECONDS, _FMT_STRING, ...)
 
#define MRPT_LOG_THROTTLE_WARN_FMT(_PERIOD_SECONDS, _FMT_STRING, ...)
 
#define MRPT_LOG_THROTTLE_ERROR_FMT(_PERIOD_SECONDS, _FMT_STRING, ...)
 
#define DEFAULT_LOGLVL_MRPT_UNSCOPED   ::mrpt::system::LVL_DEBUG
 
#define MRPT_UNSCOPED_LOGGER_START
 For calling any MRPT_LOG_*() macro from outside of an object inherited from COutputLogger. More...
 
#define MRPT_UNSCOPED_LOGGER_END
 

Typedefs

using mrpt::system::output_logger_callback_t = std::function< void(std::string_view msg, const mrpt::system::VerbosityLevel level, std::string_view loggerName, const mrpt::Clock::time_point timestamp)>
 Callback types for use with mrpt::system::COuputLogger. More...
 

Enumerations

enum  mrpt::system::VerbosityLevel {
  mrpt::system::LVL_DEBUG = 0, mrpt::system::LVL_INFO, mrpt::system::LVL_WARN, mrpt::system::LVL_ERROR,
  mrpt::system::NUMBER_OF_VERBOSITY_LEVELS
}
 Enumeration of available verbosity levels. More...
 

Functions

 MRPT_FILL_ENUM (LVL_DEBUG)
 
 MRPT_FILL_ENUM (LVL_INFO)
 
 MRPT_FILL_ENUM (LVL_WARN)
 
 MRPT_FILL_ENUM (LVL_ERROR)
 
 MRPT_FILL_ENUM_CUSTOM_NAME (LVL_DEBUG, "DEBUG")
 
 MRPT_FILL_ENUM_CUSTOM_NAME (LVL_INFO, "INFO")
 
 MRPT_FILL_ENUM_CUSTOM_NAME (LVL_WARN, "WARN")
 
 MRPT_FILL_ENUM_CUSTOM_NAME (LVL_ERROR, "ERROR")
 

Macro Definition Documentation

◆ DEFAULT_LOGLVL_MRPT_UNSCOPED

#define DEFAULT_LOGLVL_MRPT_UNSCOPED   ::mrpt::system::LVL_DEBUG

Definition at line 512 of file system/COutputLogger.h.

◆ INTERNAL_MRPT_LOG

#define INTERNAL_MRPT_LOG (   _LVL,
  _STRING 
)    this->logStr(_LVL, _STRING)

Definition at line 350 of file system/COutputLogger.h.

◆ INTERNAL_MRPT_LOG_FMT

#define INTERNAL_MRPT_LOG_FMT (   _LVL,
  _FMT_STRING,
  ... 
)
Value:
do \
{ \
if (this->isLoggingLevelVisible(_LVL)) \
{ \
this->logFmt(_LVL, _FMT_STRING, __VA_ARGS__); \
} \
} while (0)

Definition at line 363 of file system/COutputLogger.h.

◆ INTERNAL_MRPT_LOG_ONCE

#define INTERNAL_MRPT_LOG_ONCE (   _LVL,
  _STRING 
)
Value:
do \
{ \
static bool once_flag = false; \
if (!once_flag) \
{ \
once_flag = true; \
this->logStr(_LVL, _STRING); \
} \
} while (0)

Definition at line 352 of file system/COutputLogger.h.

◆ INTERNAL_MRPT_LOG_STREAM

#define INTERNAL_MRPT_LOG_STREAM (   _LVL,
  __CONTENTS 
)
Value:
do \
{ \
if (this->isLoggingLevelVisible(_LVL)) \
{ \
::mrpt::system::COutputLoggerStreamWrapper(_LVL, *this) \
<< __CONTENTS; \
} \
} while (0)

Definition at line 372 of file system/COutputLogger.h.

◆ INTERNAL_MRPT_LOG_THROTTLE

#define INTERNAL_MRPT_LOG_THROTTLE (   _LVL,
  _PERIOD_SECONDS,
  _STRING 
)
Value:
do \
{ \
if (this->isLoggingLevelVisible(_LVL)) \
{ \
static mrpt::system::CTicTac tim; \
if (tim.Tac() > _PERIOD_SECONDS) \
{ \
tim.Tic(); \
this->logStr(_LVL, _STRING); \
} \
} \
} while (0)
A high-performance stopwatch, with typical resolution of nanoseconds.
void Tic() noexcept
Starts the stopwatch.
Definition: CTicTac.cpp:76

Definition at line 382 of file system/COutputLogger.h.

◆ INTERNAL_MRPT_LOG_THROTTLE_FMT

#define INTERNAL_MRPT_LOG_THROTTLE_FMT (   _LVL,
  _PERIOD_SECONDS,
  _FMT_STRING,
  ... 
)
Value:
do \
{ \
if (this->isLoggingLevelVisible(_LVL)) \
{ \
static mrpt::system::CTicTac tim; \
if (tim.Tac() > _PERIOD_SECONDS) \
{ \
tim.Tic(); \
this->logFmt(_LVL, _FMT_STRING, __VA_ARGS__); \
} \
} \
} while (0)
A high-performance stopwatch, with typical resolution of nanoseconds.
void Tic() noexcept
Starts the stopwatch.
Definition: CTicTac.cpp:76

Definition at line 411 of file system/COutputLogger.h.

◆ INTERNAL_MRPT_LOG_THROTTLE_STREAM

#define INTERNAL_MRPT_LOG_THROTTLE_STREAM (   _LVL,
  _PERIOD_SECONDS,
  __CONTENTS 
)
Value:
do \
{ \
if (this->isLoggingLevelVisible(_LVL)) \
{ \
static mrpt::system::CTicTac tim; \
if (tim.Tac() > _PERIOD_SECONDS) \
{ \
tim.Tic(); \
::mrpt::system::COutputLoggerStreamWrapper(_LVL, *this) \
<< __CONTENTS; \
} \
} \
} while (0)
A high-performance stopwatch, with typical resolution of nanoseconds.
void Tic() noexcept
Starts the stopwatch.
Definition: CTicTac.cpp:76

Definition at line 396 of file system/COutputLogger.h.

◆ MRPT_LOG_DEBUG

#define MRPT_LOG_DEBUG (   _STRING)    INTERNAL_MRPT_LOG(::mrpt::system::LVL_DEBUG, _STRING)

Use: MRPT_LOG_DEBUG("message");

Definition at line 427 of file system/COutputLogger.h.

Referenced by mrpt::comms::CServerTCPSocket::accept(), mrpt::nav::CAbstractNavigator::cancel(), mrpt::graphslam::deciders::CICPCriteriaNRD< GRAPH_T >::checkRegistrationCondition(), mrpt::graphslam::deciders::CICPCriteriaNRD< GRAPH_T >::checkRegistrationCondition2D(), mrpt::graphslam::deciders::CICPCriteriaERD< GRAPH_T >::CICPCriteriaERD(), mrpt::graphs::ScalarFactorGraph::clear(), mrpt::slam::CMetricMapBuilder::clear(), mrpt::slam::CMetricMapBuilderRBPF::clear(), mrpt::slam::CMetricMapBuilder::CMetricMapBuilder(), mrpt::hwdrivers::CSICKTim561Eth::decodeScan(), mrpt::hwdrivers::CLMS100Eth::decodeScan(), mrpt::hwdrivers::CHokuyoURG::displaySensorInfo(), mrpt::hwdrivers::CHokuyoURG::displayVersionInfo(), mrpt::hwdrivers::CSICKTim561Eth::doProcess(), mrpt::hwdrivers::CSICKTim561Eth::doProcessSimple(), mrpt::nav::CAbstractPTGBasedReactive::enableLogFile(), mrpt::hwdrivers::CHokuyoURG::enableSCIP20(), mrpt::bayes::CParticleFilter::executeOn(), mrpt::maps::CRandomFieldGridMap2D::insertObservation_KernelDM_DMV(), mrpt::maps::CRandomFieldGridMap2D::insertObservation_KF(), mrpt::maps::CRandomFieldGridMap2D::insertObservation_KF2(), mrpt::maps::CRandomFieldGridMap2D::internal_clear(), mrpt::graphslam::deciders::CFixedIntervalsNRD< GRAPH_T >::loadParams(), mrpt::graphslam::deciders::CICPCriteriaNRD< GRAPH_T >::loadParams(), mrpt::graphslam::deciders::CICPCriteriaERD< GRAPH_T >::loadParams(), mrpt::graphslam::optimizers::CLevMarqGSO< GRAPH_T >::loadParams(), mrpt::nav::CAbstractPTGBasedReactive::performNavigationStep(), mrpt::nav::CAbstractNavigator::performNavigationStepNavigating(), mrpt::maps::CMultiMetricMapPDF::prediction_and_update_pfOptimalProposal(), mrpt::slam::CMetricMapBuilderRBPF::processActionObservation(), mrpt::slam::CMetricMapBuilderICP::processObservation(), mrpt::nav::CAbstractNavigator::resetNavError(), mrpt::nav::CAbstractNavigator::resume(), mrpt::apps::RBPF_SLAM_App_Base::run(), mrpt::bayes::CKalmanFilterCapable< 7, 3, 3, 7 >::runOneKalmanIteration(), mrpt::hwdrivers::CHokuyoURG::setHighBaudrate(), mrpt::hwdrivers::CHokuyoURG::setHighSensitivityMode(), mrpt::hwdrivers::CHokuyoURG::setMotorSpeed(), mrpt::comms::CServerTCPSocket::setupSocket(), mrpt::graphslam::deciders::CLoopCloserERD< GRAPH_T >::setWindowManagerPtr(), mrpt::hwdrivers::CHokuyoURG::startScanningMode(), mrpt::nav::CAbstractNavigator::suspend(), mrpt::hwdrivers::CHokuyoURG::switchLaserOff(), mrpt::hwdrivers::CHokuyoURG::switchLaserOn(), mrpt::hwdrivers::CSICKTim561Eth::turnOn(), mrpt::graphslam::deciders::CICPCriteriaERD< GRAPH_T >::updateState(), mrpt::hmtslam::CHMTSLAM::~CHMTSLAM(), and mrpt::slam::CMetricMapBuilder::~CMetricMapBuilder().

◆ MRPT_LOG_DEBUG_FMT

#define MRPT_LOG_DEBUG_FMT (   _FMT_STRING,
  ... 
)    INTERNAL_MRPT_LOG_FMT(::mrpt::system::LVL_DEBUG, _FMT_STRING, __VA_ARGS__)

◆ MRPT_LOG_DEBUG_STREAM

#define MRPT_LOG_DEBUG_STREAM (   __CONTENTS)    INTERNAL_MRPT_LOG_STREAM(::mrpt::system::LVL_DEBUG, __CONTENTS)

Use: MRPT_LOG_DEBUG_STREAM("Var=" << value << " foo=" << foo_var);

Definition at line 471 of file system/COutputLogger.h.

Referenced by mrpt::graphslam::CGraphSlamEngine< GRAPH_T >::_execGraphSlamStep(), mrpt::graphslam::deciders::CLoopCloserERD< GRAPH_T >::addScanMatchingEdges(), mrpt::graphslam::CGraphSlamEngine< GRAPH_T >::alignOpticalWithMRPTFrame(), mrpt::slam::CGridMapAligner::AlignPDF_robustMatch(), mrpt::graphslam::optimizers::CLevMarqGSO< GRAPH_T >::checkForFullOptimization(), mrpt::nav::CWaypointsNavigator::checkHasReachedTarget(), mrpt::graphslam::deciders::CLoopCloserERD< GRAPH_T >::checkPartitionsForLC(), mrpt::graphslam::deciders::CICPCriteriaERD< GRAPH_T >::checkRegistrationCondition2D(), mrpt::graphslam::deciders::CLoopCloserERD< GRAPH_T >::CLoopCloserERD(), mrpt::graphslam::deciders::CLoopCloserERD< GRAPH_T >::computeDominantEigenVector(), mrpt::graphslam::CGraphSlamEngine< GRAPH_T >::computeSlamMetric(), mrpt::apps::RawlogGrabberApp::dump_GPS_mode_info(), mrpt::graphslam::deciders::CLoopCloserERD< GRAPH_T >::evaluatePartitionsForLC(), mrpt::math::CLevenbergMarquardtTempl< VECTORTYPE, USERPARAM >::execute(), mrpt::graphslam::deciders::CLoopCloserERD< GRAPH_T >::generateHypotsPool(), mrpt::graphslam::deciders::CLoopCloserERD< GRAPH_T >::generatePWConsistenciesMatrix(), mrpt::graphslam::deciders::CLoopCloserERD< GRAPH_T >::generatePWConsistencyElement(), mrpt::graphslam::CRegistrationDeciderOrOptimizer< GRAPH_t >::getDescriptiveReport(), mrpt::graphslam::deciders::CLoopCloserERD< GRAPH_T >::getICPEdge(), mrpt::apps::DataSourceRawlog::impl_get_next_observations(), mrpt::graphs::ScalarFactorGraph::initialize(), mrpt::graphslam::CRegistrationDeciderOrOptimizer< GRAPH_t >::initializeLoggers(), mrpt::graphslam::CGraphSlamEngine< GRAPH_T >::initSlamMetricVisualization(), mrpt::maps::CRandomFieldGridMap2D::insertObservation_KF2(), mrpt::maps::CRandomFieldGridMap2D::internal_clear(), mrpt::maps::CRandomFieldGridMap3D::internal_initialize(), mrpt::graphslam::CRegistrationDeciderOrOptimizer< GRAPH_t >::loadParams(), mrpt::hmtslam::CHMTSLAM::LSLAM_process_message_from_AA(), mrpt::graphslam::optimizers::CLevMarqGSO< GRAPH_T >::notifyOfWindowEvents(), mrpt::graphslam::optimizers::CLevMarqGSO< GRAPH_T >::optimizeGraph(), mrpt::hwdrivers::CHokuyoURG::parseResponse(), mrpt::graphslam::CRegistrationDeciderOrOptimizer< GRAPH_t >::printParams(), mrpt::graphslam::deciders::CLoopCloserERD< GRAPH_T >::printParams(), mrpt::slam::CMetricMapBuilderRBPF::processActionObservation(), mrpt::slam::CMetricMapBuilderICP::processObservation(), mrpt::graphslam::deciders::CEdgeRegistrationDecider< GRAPH_t >::registerNewEdge(), mrpt::graphslam::deciders::CNodeRegistrationDecider< GRAPH_t >::registerNewNodeAtEnd(), mrpt::graphslam::CGraphSlamEngine< GRAPH_T >::save3DScene(), mrpt::hwdrivers::CHokuyoURG::sendCmd(), mrpt::graphslam::CWindowManager::setCDisplayWindow3DPtr(), mrpt::graphslam::CRegistrationDeciderOrOptimizer< GRAPH_t >::setGraphPtr(), mrpt::graphslam::CWindowManager::setWindowObserverPtr(), mrpt::hmtslam::CHMTSLAM::thread_LSLAM(), mrpt::graphslam::deciders::CLoopCloserERD< GRAPH_T >::updateCurrCovarianceVisualization(), mrpt::graphslam::CGraphSlamEngine< GRAPH_T >::updateCurrPosViewport(), mrpt::graphslam::deciders::CLoopCloserERD< GRAPH_T >::updateMapPartitions(), mrpt::graphslam::deciders::CLoopCloserERD< GRAPH_T >::updateMapPartitionsVisualization(), mrpt::graphslam::CGraphSlamEngine< GRAPH_T >::updateMapVisualization(), mrpt::graphslam::deciders::CLoopCloserERD< GRAPH_T >::updateState(), mrpt::nav::CWaypointsNavigator::waypoints_navigationStep(), and mrpt::graphslam::CGraphSlamEngine< GRAPH_T >::~CGraphSlamEngine().

◆ MRPT_LOG_ERROR

#define MRPT_LOG_ERROR (   _STRING)    INTERNAL_MRPT_LOG(::mrpt::system::LVL_ERROR, _STRING)

◆ MRPT_LOG_ERROR_FMT

#define MRPT_LOG_ERROR_FMT (   _FMT_STRING,
  ... 
)    INTERNAL_MRPT_LOG_FMT(::mrpt::system::LVL_ERROR, _FMT_STRING, __VA_ARGS__)

◆ MRPT_LOG_ERROR_STREAM

#define MRPT_LOG_ERROR_STREAM (   __CONTENTS)    INTERNAL_MRPT_LOG_STREAM(::mrpt::system::LVL_ERROR, __CONTENTS)

◆ MRPT_LOG_INFO

#define MRPT_LOG_INFO (   _STRING)    INTERNAL_MRPT_LOG(::mrpt::system::LVL_INFO, _STRING)

◆ MRPT_LOG_INFO_FMT

#define MRPT_LOG_INFO_FMT (   _FMT_STRING,
  ... 
)    INTERNAL_MRPT_LOG_FMT(::mrpt::system::LVL_INFO, _FMT_STRING, __VA_ARGS__)

◆ MRPT_LOG_INFO_STREAM

#define MRPT_LOG_INFO_STREAM (   __CONTENTS)    INTERNAL_MRPT_LOG_STREAM(::mrpt::system::LVL_INFO, __CONTENTS)

Definition at line 473 of file system/COutputLogger.h.

Referenced by mrpt::slam::CGridMapAligner::AlignPDF_robustMatch(), mrpt::hwdrivers::CHokuyoURG::displaySensorInfo(), mrpt::hwdrivers::CHokuyoURG::displayVersionInfo(), mrpt::apps::MonteCarloLocalization_Base::do_pf_localization(), mrpt::system::CTimeLogger::dumpAllStats(), mrpt::hwdrivers::CHokuyoURG::ensureStreamIsOpen(), mrpt::hmtslam::CHMTSLAM::generateLogFiles(), mrpt::graphslam::CGraphSlamEngine< GRAPH_T >::generateReportFiles(), mrpt::graphslam::CGraphSlamEngine< GRAPH_T >::initClass(), mrpt::slam::CMetricMapBuilderRBPF::initialize(), mrpt::graphslam::CGraphSlamEngine< GRAPH_T >::initResultsFile(), mrpt::slam::CMetricMapBuilder::loadCurrentMapFromFile(), mrpt::hmtslam::CHMTSLAM::LSLAM_process_message_from_AA(), mrpt::apps::RawlogGrabberApp::process_observations_for_nonsf(), mrpt::apps::RawlogGrabberApp::process_observations_for_sf(), mrpt::slam::CMetricMapBuilderRBPF::processActionObservation(), mrpt::slam::CMetricMapBuilderICP::processObservation(), mrpt::graphslam::CGraphSlamEngine< GRAPH_T >::resumeExec(), mrpt::apps::CGridMapAlignerApp::run(), mrpt::apps::KFSLAMApp::Run_KF_SLAM(), mrpt::apps::RawlogGrabberApp::runImpl(), mrpt::graphslam::CGraphSlamEngine< GRAPH_T >::save3DScene(), mrpt::slam::CMetricMapBuilder::saveCurrentMapToFile(), mrpt::graphslam::CGraphSlamEngine< GRAPH_T >::saveGraph(), mrpt::nav::CRobot2NavInterface::sendNewWaypointTargetEvent(), mrpt::nav::CRobot2NavInterface::sendWaypointReachedEvent(), mrpt::apps::RawlogGrabberApp::SensorThread(), mrpt::graphslam::CGraphSlamEngine< GRAPH_T >::toggleEstimatedTrajectoryVisualization(), mrpt::graphslam::CGraphSlamEngine< GRAPH_T >::toggleGTVisualization(), mrpt::graphslam::CGraphSlamEngine< GRAPH_T >::toggleMapVisualization(), mrpt::graphslam::CGraphSlamEngine< GRAPH_T >::toggleOdometryVisualization(), and mrpt::hwdrivers::CHokuyoURG::turnOn().

◆ MRPT_LOG_ONCE_DEBUG

#define MRPT_LOG_ONCE_DEBUG (   _STRING)    INTERNAL_MRPT_LOG_ONCE(::mrpt::system::LVL_DEBUG, _STRING)

Use: MRPT_LOG_ONCE_DEBUG("once-only message");

Definition at line 437 of file system/COutputLogger.h.

◆ MRPT_LOG_ONCE_ERROR

#define MRPT_LOG_ONCE_ERROR (   _STRING)    INTERNAL_MRPT_LOG_ONCE(::mrpt::system::LVL_ERROR, _STRING)

Definition at line 443 of file system/COutputLogger.h.

◆ MRPT_LOG_ONCE_INFO

#define MRPT_LOG_ONCE_INFO (   _STRING)    INTERNAL_MRPT_LOG_ONCE(::mrpt::system::LVL_INFO, _STRING)

Definition at line 439 of file system/COutputLogger.h.

◆ MRPT_LOG_ONCE_WARN

#define MRPT_LOG_ONCE_WARN (   _STRING)    INTERNAL_MRPT_LOG_ONCE(::mrpt::system::LVL_WARN, _STRING)

Definition at line 441 of file system/COutputLogger.h.

◆ MRPT_LOG_THROTTLE_DEBUG

#define MRPT_LOG_THROTTLE_DEBUG (   _PERIOD_SECONDS,
  _STRING 
)
Value:
::mrpt::system::LVL_DEBUG, _PERIOD_SECONDS, _STRING)
#define INTERNAL_MRPT_LOG_THROTTLE(_LVL, _PERIOD_SECONDS, _STRING)

Use: MRPT_LOG_THROTTLE_DEBUG(5.0, "message");

Definition at line 447 of file system/COutputLogger.h.

◆ MRPT_LOG_THROTTLE_DEBUG_FMT

#define MRPT_LOG_THROTTLE_DEBUG_FMT (   _PERIOD_SECONDS,
  _FMT_STRING,
  ... 
)
Value:
::mrpt::system::LVL_DEBUG, _PERIOD_SECONDS, _FMT_STRING, __VA_ARGS__)
#define INTERNAL_MRPT_LOG_THROTTLE_FMT( _LVL, _PERIOD_SECONDS, _FMT_STRING,...)

Usage: MRPT_LOG_THROTTLE_DEBUG_FMT(5.0, "i=%u", i);

Definition at line 496 of file system/COutputLogger.h.

Referenced by mrpt::nav::CAbstractNavigator::updateCurrentPoseAndSpeeds().

◆ MRPT_LOG_THROTTLE_DEBUG_STREAM

#define MRPT_LOG_THROTTLE_DEBUG_STREAM (   _PERIOD_SECONDS,
  __CONTENTS 
)
Value:
::mrpt::system::LVL_DEBUG, _PERIOD_SECONDS, __CONTENTS)
#define INTERNAL_MRPT_LOG_THROTTLE_STREAM(_LVL, _PERIOD_SECONDS, __CONTENTS)

Usage: MRPT_LOG_THROTTLE_DEBUG_STREAM(5.0, "Var=" << value << " foo=" << foo_var);

Definition at line 482 of file system/COutputLogger.h.

◆ MRPT_LOG_THROTTLE_ERROR

#define MRPT_LOG_THROTTLE_ERROR (   _PERIOD_SECONDS,
  _STRING 
)
Value:
::mrpt::system::LVL_ERROR, _PERIOD_SECONDS, _STRING)
#define INTERNAL_MRPT_LOG_THROTTLE(_LVL, _PERIOD_SECONDS, _STRING)

Definition at line 456 of file system/COutputLogger.h.

Referenced by mrpt::hwdrivers::C2DRangeFinderAbstract::doProcess().

◆ MRPT_LOG_THROTTLE_ERROR_FMT

#define MRPT_LOG_THROTTLE_ERROR_FMT (   _PERIOD_SECONDS,
  _FMT_STRING,
  ... 
)
Value:
::mrpt::system::LVL_ERROR, _PERIOD_SECONDS, _FMT_STRING, __VA_ARGS__)
#define INTERNAL_MRPT_LOG_THROTTLE_FMT( _LVL, _PERIOD_SECONDS, _FMT_STRING,...)

Definition at line 505 of file system/COutputLogger.h.

◆ MRPT_LOG_THROTTLE_ERROR_STREAM

#define MRPT_LOG_THROTTLE_ERROR_STREAM (   _PERIOD_SECONDS,
  __CONTENTS 
)
Value:
::mrpt::system::LVL_ERROR, _PERIOD_SECONDS, __CONTENTS)
#define INTERNAL_MRPT_LOG_THROTTLE_STREAM(_LVL, _PERIOD_SECONDS, __CONTENTS)

Definition at line 491 of file system/COutputLogger.h.

◆ MRPT_LOG_THROTTLE_INFO

#define MRPT_LOG_THROTTLE_INFO (   _PERIOD_SECONDS,
  _STRING 
)

◆ MRPT_LOG_THROTTLE_INFO_FMT

#define MRPT_LOG_THROTTLE_INFO_FMT (   _PERIOD_SECONDS,
  _FMT_STRING,
  ... 
)
Value:
::mrpt::system::LVL_INFO, _PERIOD_SECONDS, _FMT_STRING, __VA_ARGS__)
#define INTERNAL_MRPT_LOG_THROTTLE_FMT( _LVL, _PERIOD_SECONDS, _FMT_STRING,...)

Definition at line 499 of file system/COutputLogger.h.

Referenced by mrpt::nav::CWaypointsNavigator::waypoints_navigationStep().

◆ MRPT_LOG_THROTTLE_INFO_STREAM

#define MRPT_LOG_THROTTLE_INFO_STREAM (   _PERIOD_SECONDS,
  __CONTENTS 
)
Value:
::mrpt::system::LVL_INFO, _PERIOD_SECONDS, __CONTENTS)
#define INTERNAL_MRPT_LOG_THROTTLE_STREAM(_LVL, _PERIOD_SECONDS, __CONTENTS)

Definition at line 485 of file system/COutputLogger.h.

◆ MRPT_LOG_THROTTLE_WARN

#define MRPT_LOG_THROTTLE_WARN (   _PERIOD_SECONDS,
  _STRING 
)

◆ MRPT_LOG_THROTTLE_WARN_FMT

#define MRPT_LOG_THROTTLE_WARN_FMT (   _PERIOD_SECONDS,
  _FMT_STRING,
  ... 
)
Value:
::mrpt::system::LVL_WARN, _PERIOD_SECONDS, _FMT_STRING, __VA_ARGS__)
#define INTERNAL_MRPT_LOG_THROTTLE_FMT( _LVL, _PERIOD_SECONDS, _FMT_STRING,...)

Definition at line 502 of file system/COutputLogger.h.

Referenced by mrpt::system::CControlledRateTimer::sleep().

◆ MRPT_LOG_THROTTLE_WARN_STREAM

#define MRPT_LOG_THROTTLE_WARN_STREAM (   _PERIOD_SECONDS,
  __CONTENTS 
)
Value:
::mrpt::system::LVL_WARN, _PERIOD_SECONDS, __CONTENTS)
#define INTERNAL_MRPT_LOG_THROTTLE_STREAM(_LVL, _PERIOD_SECONDS, __CONTENTS)

Definition at line 488 of file system/COutputLogger.h.

◆ MRPT_LOG_WARN

#define MRPT_LOG_WARN (   _STRING)    INTERNAL_MRPT_LOG(::mrpt::system::LVL_WARN, _STRING)

◆ MRPT_LOG_WARN_FMT

#define MRPT_LOG_WARN_FMT (   _FMT_STRING,
  ... 
)    INTERNAL_MRPT_LOG_FMT(::mrpt::system::LVL_WARN, _FMT_STRING, __VA_ARGS__)

◆ MRPT_LOG_WARN_STREAM

#define MRPT_LOG_WARN_STREAM (   __CONTENTS)    INTERNAL_MRPT_LOG_STREAM(::mrpt::system::LVL_WARN, __CONTENTS)

◆ MRPT_UNSCOPED_LOGGER_END

#define MRPT_UNSCOPED_LOGGER_END
Value:
} \
} \
; \
static dummy_logger_ tmp_obj; \
tmp_obj.usercode(); \
} \
while (0)

Definition at line 544 of file system/COutputLogger.h.

◆ MRPT_UNSCOPED_LOGGER_START

#define MRPT_UNSCOPED_LOGGER_START
Value:
do \
{ \
struct dummy_logger_ : public mrpt::system::COutputLogger \
{ \
dummy_logger_() : mrpt::system::COutputLogger("MRPT_log") \
{ \
} \
void usercode() \
{ \
do \
{ \
} while (0)
void setMinLoggingLevel(const VerbosityLevel level)
Set the minimum logging level for which the incoming logs are going to be taken into account...
mrpt::system::COutputLogger COutputLogger
Versatile class for consistent logging and management of output messages.
#define DEFAULT_LOGLVL_MRPT_UNSCOPED
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.

For calling any MRPT_LOG_*() macro from outside of an object inherited from COutputLogger.

Debug level is DEBUG if build with _DEBUG preprocessor flag, INFO otherwise. Use:

Definition at line 527 of file system/COutputLogger.h.

Function Documentation

◆ MRPT_FILL_ENUM() [1/4]

MRPT_FILL_ENUM ( LVL_DEBUG  )

◆ MRPT_FILL_ENUM() [2/4]

MRPT_FILL_ENUM ( LVL_INFO  )

◆ MRPT_FILL_ENUM() [3/4]

MRPT_FILL_ENUM ( LVL_WARN  )

◆ MRPT_FILL_ENUM() [4/4]

MRPT_FILL_ENUM ( LVL_ERROR  )

◆ MRPT_FILL_ENUM_CUSTOM_NAME() [1/4]

MRPT_FILL_ENUM_CUSTOM_NAME ( LVL_DEBUG  ,
"DEBUG"   
)

◆ MRPT_FILL_ENUM_CUSTOM_NAME() [2/4]

MRPT_FILL_ENUM_CUSTOM_NAME ( LVL_INFO  ,
"INFO"   
)

◆ MRPT_FILL_ENUM_CUSTOM_NAME() [3/4]

MRPT_FILL_ENUM_CUSTOM_NAME ( LVL_WARN  ,
"WARN"   
)

◆ MRPT_FILL_ENUM_CUSTOM_NAME() [4/4]

MRPT_FILL_ENUM_CUSTOM_NAME ( LVL_ERROR  ,
"ERROR"   
)



Page generated by Doxygen 1.8.14 for MRPT 2.0.4 Git: 33de1d0ad Sat Jun 20 11:02:42 2020 +0200 at sáb jun 20 17:35:17 CEST 2020