Class to be used in tests with logging checks. More...
#include <logger_mock.h>
Public Member Functions | |
LoggerMock (const std::string &logger_name=ROSCONSOLE_ROOT_LOGGER_NAME) | |
MockAppender & | operator* () |
~LoggerMock () | |
Private Attributes | |
MockAppender * | mock_appender_ { new MockAppender() } |
log4cxx::LoggerPtr | ros_root_logger_ |
Class to be used in tests with logging checks.
With deletion of this class the internal logging mechanism is detached.
Usage
Asynchronous usage in combination with testing::AsyncTest
Definition at line 67 of file logger_mock.h.
|
inline |
Definition at line 86 of file logger_mock.h.
|
inline |
Definition at line 92 of file logger_mock.h.
|
inline |
Definition at line 97 of file logger_mock.h.
|
private |
Definition at line 83 of file logger_mock.h.
|
private |
Definition at line 77 of file logger_mock.h.