Public Member Functions | |
std::string | getDate (void) |
void | header (int level) |
Message prefix appender function. More... | |
LoggerMock (RTC::LogStreamBuf *streambuf) | |
void | setDateFormat (const char *format) |
void | setName (const char *name) |
int | strToLevel (const char *level) |
std::string | test_string (void) |
virtual | ~LoggerMock (void) |
Public Member Functions inherited from RTC::Logger | |
Logger (const char *name="") | |
Constructor. More... | |
Logger (LogStreamBuf *streambuf) | |
Constructor. More... | |
void | setDateFormat (const char *format) |
Set date/time format for adding the header. More... | |
bool | setLevel (const char *level) |
Set log level by string. More... | |
void | setName (const char *name) |
Set suffix of date/time string of header. More... | |
virtual | ~Logger (void) |
Virtual destructor. More... | |
Public Member Functions inherited from coil::log_stream< _CharT, _Traits > | |
void | disableLock () |
Disable the lock mode. More... | |
void | enableLock () |
Enable the lock mode. More... | |
int | getLevel () const |
Get the log level. More... | |
bool | isValid (int level) const |
Log level effective check. More... | |
ostream_type & | level (int level) |
Acquire log stream. More... | |
void | lock () |
Acquire log lock Acquire log lock when the lock mode is set. More... | |
log_stream (streambuf_type *sb, int levelmin, int levelmax, int level) | |
Constructor. More... | |
bool | setLevel (int level) |
Set the log level. More... | |
void | unlock () |
Release the log lock Release the log lock when the lock mode is set. More... | |
Public Attributes | |
std::string | mock_m_dateFormat |
std::string | mock_m_name |
Additional Inherited Members | |
Public Types inherited from RTC::Logger | |
enum | { RTL_SILENT, RTL_FATAL, RTL_ERROR, RTL_WARN, RTL_INFO, RTL_DEBUG, RTL_TRACE, RTL_VERBOSE, RTL_PARANOID } |
Public Types inherited from coil::log_stream< _CharT, _Traits > | |
typedef _CharT | char_type |
typedef coil::Guard< Mutex > | Guard |
typedef coil::Mutex | Mutex |
typedef std::basic_ostream< char_type, traits_type > | ostream_type |
typedef std::basic_streambuf< char_type, traits_type > | streambuf_type |
typedef _Traits | traits_type |
Static Public Attributes inherited from coil::log_stream< _CharT, _Traits > | |
static bool | m_lockEnable = true |
Lock enable mode. More... | |
static Mutex | m_mutex |
Mutual exclusion object. More... | |
Protected Member Functions inherited from RTC::Logger | |
std::string | getDate (void) |
Get the current formatted date/time string Get the current datetime described by specified format. More... | |
int | strToLevel (const char *level) |
Set the log level Set the log level corresponding to the given string. More... | |
Protected Member Functions inherited from coil::log_stream< _CharT, _Traits > | |
log_stream () | |
Default constructor. More... | |
log_stream (const log_stream &x) | |
Copy Constructor. More... | |
log_stream & | operator= (const log_stream &x) |
Assignment operator. More... | |
~log_stream () | |
Destructor. More... | |
Definition at line 46 of file SystemLoggerTests.cpp.
|
inline |
Definition at line 50 of file SystemLoggerTests.cpp.
|
inlinevirtual |
Definition at line 52 of file SystemLoggerTests.cpp.
|
inline |
Definition at line 78 of file SystemLoggerTests.cpp.
|
inlinevirtual |
Message prefix appender function.
Subclasses of this class should override this operation, and this function should be defined to append some prefix to the log messages.
Reimplemented from RTC::Logger.
Definition at line 71 of file SystemLoggerTests.cpp.
|
inline |
Definition at line 55 of file SystemLoggerTests.cpp.
|
inline |
Definition at line 63 of file SystemLoggerTests.cpp.
|
inline |
Definition at line 84 of file SystemLoggerTests.cpp.
|
inline |
Definition at line 91 of file SystemLoggerTests.cpp.
std::string Tests::LoggerMock::mock_m_dateFormat |
Definition at line 102 of file SystemLoggerTests.cpp.
std::string Tests::LoggerMock::mock_m_name |
Definition at line 101 of file SystemLoggerTests.cpp.