#include <Fw/Logger/Logger.hpp>
|
virtual void | log (const char *fmt, POINTER_CAST a0=0, POINTER_CAST a1=0, POINTER_CAST a2=0, POINTER_CAST a3=0, POINTER_CAST a4=0, POINTER_CAST a5=0, POINTER_CAST a6=0, POINTER_CAST a7=0, POINTER_CAST a8=0, POINTER_CAST a9=0)=0 |
|
virtual | ~Logger () |
|
|
static void | logMsg (const char *fmt, POINTER_CAST a0=0, POINTER_CAST a1=0, POINTER_CAST a2=0, POINTER_CAST a3=0, POINTER_CAST a4=0, POINTER_CAST a5=0, POINTER_CAST a6=0, POINTER_CAST a7=0, POINTER_CAST a8=0, POINTER_CAST a9=0) |
|
static void | registerLogger (Logger *logger) |
| Static logger to use when calling the above 'logMsg' function.
|
|
Definition at line 15 of file Logger.hpp.
◆ ~Logger()
◆ log()
virtual void Fw::Logger::log |
( |
const char * |
fmt, |
|
|
POINTER_CAST |
a0 = 0 , |
|
|
POINTER_CAST |
a1 = 0 , |
|
|
POINTER_CAST |
a2 = 0 , |
|
|
POINTER_CAST |
a3 = 0 , |
|
|
POINTER_CAST |
a4 = 0 , |
|
|
POINTER_CAST |
a5 = 0 , |
|
|
POINTER_CAST |
a6 = 0 , |
|
|
POINTER_CAST |
a7 = 0 , |
|
|
POINTER_CAST |
a8 = 0 , |
|
|
POINTER_CAST |
a9 = 0 |
|
) |
| |
|
pure virtual |
Function called on the logger to log a message. This is abstract virtual method and must be supplied by the subclass. This logger object should be registered with the Fw::Log::registerLogger function.
- Parameters
-
fmt | format string in which to place arguments |
a0 | zeroth argument. (Default: 0) |
a1 | first argument. (Default: 0) |
a2 | second argument. (Default: 0) |
a3 | third argument. (Default: 0) |
a4 | fourth argument. (Default: 0) |
a5 | fifth argument. (Default: 0) |
a6 | sixth argument. (Default: 0) |
a7 | seventh argument. (Default: 0) |
a8 | eighth argument. (Default: 0) |
a9 | ninth argument. (Default: 0) |
Implemented in Os::Log.
◆ logMsg()
void Fw::Logger::logMsg |
( |
const char * |
fmt, |
|
|
POINTER_CAST |
a0 = 0 , |
|
|
POINTER_CAST |
a1 = 0 , |
|
|
POINTER_CAST |
a2 = 0 , |
|
|
POINTER_CAST |
a3 = 0 , |
|
|
POINTER_CAST |
a4 = 0 , |
|
|
POINTER_CAST |
a5 = 0 , |
|
|
POINTER_CAST |
a6 = 0 , |
|
|
POINTER_CAST |
a7 = 0 , |
|
|
POINTER_CAST |
a8 = 0 , |
|
|
POINTER_CAST |
a9 = 0 |
|
) |
| |
|
static |
Logs a message using the currently specified static logger. If a logger is not registered, then the log message is dropped.
- Parameters
-
fmt | format string in which to place arguments |
a0 | zeroth argument. (Default: 0) |
a1 | first argument. (Default: 0) |
a2 | second argument. (Default: 0) |
a3 | third argument. (Default: 0) |
a4 | fourth argument. (Default: 0) |
a5 | fifth argument. (Default: 0) |
a6 | sixth argument. (Default: 0) |
a7 | seventh argument. (Default: 0) |
a8 | eighth argument. (Default: 0) |
a9 | ninth argument. (Default: 0) |
Definition at line 18 of file Logger.cpp.
◆ registerLogger()
void Fw::Logger::registerLogger |
( |
Logger * |
logger | ) |
|
|
static |
Static logger to use when calling the above 'logMsg' function.
Registers the static logger for use with the Fw::Log::logMsg function. This must be a subclass of Fw::Log.
- Parameters
-
logger | logger to log to when Fw::Log::logMsg is called. |
Definition at line 27 of file Logger.cpp.
◆ s_current_logger
Logger * Fw::Logger::s_current_logger = nullptr |
|
static |
The documentation for this class was generated from the following files: