F´ Flight Software - C/C++ Documentation  NASA-v2.0.1
A framework for building embedded system applications to NASA flight quality standards.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
LogPrintf.cpp
Go to the documentation of this file.
1 
6 #include <Os/Log.hpp>
7 
8 #include <stdio.h>
9 
10 namespace Os {
12 
13  // Register myself as a logger at construction time. If used in unison with LogDefault.cpp, this will
14  // automatically create this as a default logger.
15  this->registerLogger(this);
16  }
17 
18  // Instance implementation
19  void Log::log(
20  const char* fmt,
21  POINTER_CAST a0,
22  POINTER_CAST a1,
23  POINTER_CAST a2,
24  POINTER_CAST a3,
25  POINTER_CAST a4,
26  POINTER_CAST a5,
27  POINTER_CAST a6,
28  POINTER_CAST a7,
29  POINTER_CAST a8,
30  POINTER_CAST a9
31  ) {
32  (void) printf(fmt, a0, a1, a2, a3, a4, a5, a6, a7, a8, a9);
33  (void) fflush(stdout);
34  }
35 }
36 
Os
Definition: File.cpp:7
Os::Log::log
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)
Definition: LogPrintf.cpp:19
Fw::Logger::registerLogger
static void registerLogger(Logger *logger)
Static logger to use when calling the above 'logMsg' function.
Definition: Logger.cpp:27
Os::Log::Log
Log()
Definition: LogPrintf.cpp:11
Log.hpp