F´ Flight Software - C/C++ Documentation NASA-v1.6.0
A framework for building embedded system applications to NASA flight quality standards.
Loading...
Searching...
No Matches
Logger.hpp
Go to the documentation of this file.
1
9#ifndef _Fw_Logger_hpp_
10#define _Fw_Logger_hpp_
11
12#include <FpConfig.hpp>
13
14namespace Fw {
15 class Logger {
16 public:
33 virtual void log(
34 const char* fmt,
35 POINTER_CAST a0 = 0,
36 POINTER_CAST a1 = 0,
37 POINTER_CAST a2 = 0,
38 POINTER_CAST a3 = 0,
39 POINTER_CAST a4 = 0,
40 POINTER_CAST a5 = 0,
41 POINTER_CAST a6 = 0,
42 POINTER_CAST a7 = 0,
43 POINTER_CAST a8 = 0,
44 POINTER_CAST a9 = 0
45 ) = 0;
46
62 static void logMsg(
63 const char* fmt,
64 POINTER_CAST a0 = 0,
65 POINTER_CAST a1 = 0,
66 POINTER_CAST a2 = 0,
67 POINTER_CAST a3 = 0,
68 POINTER_CAST a4 = 0,
69 POINTER_CAST a5 = 0,
70 POINTER_CAST a6 = 0,
71 POINTER_CAST a7 = 0,
72 POINTER_CAST a8 = 0,
73 POINTER_CAST a9 = 0
74 );
75
81 static void registerLogger(Logger* logger);
82
85
86 virtual ~Logger();
87 };
88}
89
90#endif
PlatformPointerCastType POINTER_CAST
Definition BasicTypes.h:53
C++-compatible configuration header for fprime configuration.
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)
Definition Logger.cpp:18
static void registerLogger(Logger *logger)
Static logger to use when calling the above 'logMsg' function.
Definition Logger.cpp:27
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()
Definition Logger.cpp:31
static Logger * s_current_logger
Definition Logger.hpp:84
Definition Buffer.cpp:21