Convenience base class for providing this->log and getCrasLogger(). Just add it as a base to your class and all CRAS_* logging macros should work with the logger from this class.
More...
#include <log_utils.h>

Public Member Functions | |
| ::cras::LogHelperConstPtr | getCrasLogger () const |
This is the function picked up by CRAS_* logging macros. More... | |
| HasLogger (const ::cras::LogHelperPtr &log) | |
| Associate the logger with this interface. More... | |
| void | setCrasLogger (const ::cras::LogHelperPtr &log) |
| Set the logger to be used for logging. More... | |
Protected Attributes | |
| ::cras::LogHelperPtr | log |
| Log helper. More... | |
Convenience base class for providing this->log and getCrasLogger(). Just add it as a base to your class and all CRAS_* logging macros should work with the logger from this class.
Definition at line 229 of file log_utils.h.
|
explicit |
Associate the logger with this interface.
| [in] | log | The logger to use. |
| ::cras::LogHelperConstPtr cras::HasLogger::getCrasLogger | ( | ) | const |
This is the function picked up by CRAS_* logging macros.
| void cras::HasLogger::setCrasLogger | ( | const ::cras::LogHelperPtr & | log | ) |
Set the logger to be used for logging.
| [in] | log | The logger to be used. |
|
protected |
Log helper.
Definition at line 252 of file log_utils.h.