Tezzeret  1
Tezzeret
GmLog.hpp
1 #ifndef GMLOG_HPP_
2 #define GMLOG_HPP_
3 
4 #if GEO_LOG_FILES == GEO_TRUE
5 
6 #include <GeoFatFsStorage.hpp>
7 
8 
9 #define MAX_APP_PATH_LN 32
10 #define MAX_GEO_LOG_PATH_LN MAX_APP_PATH_LN
11 
12 #define GM_LOG_OK 0
13 #define GM_LOG_FAIL 1
14 #define GM_LOG_BAD_FILE 2
15 #define GM_LOG_BAD_FILE_ENTRY 3
16 #define GM_LOG_MISSING_ENTRY 4
17 #define GM_LOG_NOT_FOUND 5
18 #define GM_LOG_INVALID_PARAMS 6
19 #define GM_LOG_NO_MEMORY 7
20 #define GM_LOG_ALREADY_OPEN 8
21 
22 namespace Geometrics
23 {
51 class GmLog
52  {
53  public:
54  GmLog ();
55  ~GmLog ();
56  static int OpenLogFile (const char *logFileName,
57  const char *serialNumber,
58  const char *firmwareName,
59  const char *firmwareVersion,
60  const char *ssid);
61  static int CloseLogFile ();
62  static int FlushLog ();
63 
68  static int LogMessage (const char *message);
69 
70  //virtual int IsFileStorage() { return FALSE; };
71  virtual int IsDataStorage () { return FALSE; };
72 
73  private:
74  static GeoFatFsStorage *sLogFile;
75 
76  };
77 }
78 #endif
79 #endif
Definition: GeoFatFsStorage.hpp:38
class Geometrics::GmLog is really a name space for a set of static logging functions....
Definition: GmLog.hpp:52
static int LogMessage(const char *message)
The main entry point into the logging system. See the notes for this class (Geometrics::GmLog) about ...
Definition: GmLog.cpp:173
GmApp/GmLoggingApp.hpp>
Definition: Analogs.hpp:47