Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/modm/debug/logger/level.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ namespace modm
*
* \ingroup modm_debug
*/
#define MODM_LOG_LEVEL modm::log::DEBUG
#define MODM_LOG_LEVEL ::modm::log::DEBUG
#endif // MODM_LOG_LEVEL

#endif // MODM_LOG_LEVEL_HPP
18 changes: 9 additions & 9 deletions src/modm/debug/logger/logger.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,39 +88,39 @@ namespace modm
*/
#define MODM_LOG_OFF \
if ( true ){} \
else modm::log::debug
else ::modm::log::debug

/**
* \brief Output stream for debug messages
* \ingroup modm_debug
*/
#define MODM_LOG_DEBUG \
if (MODM_LOG_LEVEL > modm::log::DEBUG){} \
else modm::log::debug
if (MODM_LOG_LEVEL > ::modm::log::DEBUG){} \
else ::modm::log::debug

/**
* \brief Output stream for info messages
* \ingroup modm_debug
*/
#define MODM_LOG_INFO \
if (MODM_LOG_LEVEL > modm::log::INFO){} \
else modm::log::info
if (MODM_LOG_LEVEL > ::modm::log::INFO){} \
else ::modm::log::info

/**
* \brief Output stream for warnings
* \ingroup modm_debug
*/
#define MODM_LOG_WARNING \
if (MODM_LOG_LEVEL > modm::log::WARNING){} \
else modm::log::warning
if (MODM_LOG_LEVEL > ::modm::log::WARNING){} \
else ::modm::log::warning

/**
* \brief Output stream for error messages
* \ingroup modm_debug
*/
#define MODM_LOG_ERROR \
if (MODM_LOG_LEVEL > modm::log::ERROR){} \
else modm::log::error
if (MODM_LOG_LEVEL > ::modm::log::ERROR){} \
else ::modm::log::error

#ifdef __DOXYGEN__

Expand Down