F´ Flight Software - C/C++ Documentation  NASA-v1.5.0
A framework for building embedded system applications to NASA flight quality standards.
Logger.hpp
Go to the documentation of this file.
1 
9 #ifndef _Fw_Loger_hpp_
10 #define _Fw_Loger_hpp_
11 
12 #include <Fw/Types/BasicTypes.hpp>
13 
14 namespace Fw {
15  class Logger {
16  public:
29  virtual void log(
30  const char* fmt,
31  POINTER_CAST a0 = 0,
32  POINTER_CAST a1 = 0,
33  POINTER_CAST a2 = 0,
34  POINTER_CAST a3 = 0,
35  POINTER_CAST a4 = 0,
36  POINTER_CAST a5 = 0,
37  POINTER_CAST a6 = 0,
38  POINTER_CAST a7 = 0,
39  POINTER_CAST a8 = 0,
40  POINTER_CAST a9 = 0
41  ) = 0;
42 
54  static void logMsg(
55  const char* fmt,
56  POINTER_CAST a0 = 0,
57  POINTER_CAST a1 = 0,
58  POINTER_CAST a2 = 0,
59  POINTER_CAST a3 = 0,
60  POINTER_CAST a4 = 0,
61  POINTER_CAST a5 = 0,
62  POINTER_CAST a6 = 0,
63  POINTER_CAST a7 = 0,
64  POINTER_CAST a8 = 0,
65  POINTER_CAST a9 = 0
66  );
67 
73  static void registerLogger(Logger* logger);
74 
77 
78  virtual ~Logger();
79  };
80 }
81 
82 #endif
Fw::Logger
Definition: Logger.hpp:15
Fw::Logger::log
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
Fw::Logger::~Logger
virtual ~Logger()
Definition: Logger.cpp:31
Fw::Logger::registerLogger
static void registerLogger(Logger *logger)
Static logger to use when calling the above 'logMsg' function.
Definition: Logger.cpp:27
Fw::Logger::s_current_logger
static Logger * s_current_logger
Definition: Logger.hpp:76
Fw::Logger::logMsg
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
BasicTypes.hpp
Declares ISF basic types.
Fw
Definition: BufferGetPortAc.cpp:6