#include <Fw/Logger/Logger.hpp>
Definition at line 21 of file Logger.hpp.
◆ ~Logger()
virtual Fw::Logger::~Logger |
( |
| ) |
|
|
virtualdefault |
◆ log() [1/2]
void Fw::Logger::log |
( |
const char * |
format, |
|
|
|
... |
|
) |
| |
|
static |
log a formated string with supplied arguments
Logs a format string with the arguments filled-in. This delegates to StringBase.format, which in-turn delegates to snprintf. This implies that the caller is fully responsible for handling the type safety of the supplied format string. The format string uses C-style (printf function family) formatting.
- Parameters
-
format | format string |
... | var-args list of arguments to inject into format string. |
Definition at line 21 of file Logger.cpp.
◆ log() [2/2]
log a string message directly
Logs the string directly to the backing store without any formatting changes.
- Parameters
-
Definition at line 31 of file Logger.cpp.
◆ registerLogger()
void Fw::Logger::registerLogger |
( |
Logger * |
logger | ) |
|
|
static |
register a logger implementation
This registers the supplied logger as the system logger used for calls to Fw::Logger::log.
- Parameters
-
logger | logger to register as the system logger |
Definition at line 37 of file Logger.cpp.
◆ writeMessage()
virtual void Fw::Logger::writeMessage |
( |
const StringBase & |
message | ) |
|
|
protectedpure virtual |
write the output of the log message
Log implementations must provide this method used to write the output of a string to the log backing.
- Parameters
-
Implemented in Os::Console.
◆ LoggerRules::Register
friend struct LoggerRules::Register |
|
friend |
The documentation for this class was generated from the following files: