Define MRPT_UNSCOPED_LOGGER_START

Define Documentation

MRPT_UNSCOPED_LOGGER_START

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:

MRPT_UNSCOPED_LOGGER_START;
MRPT_LOG_WARN("blah");
MRPT_LOG_ERROR_STREAM("error: " << strval);
MRPT_UNSCOPED_LOGGER_END;