flux sdk  v01.05.00-3-gedf3296
Embedded C++ SDK
Loading...
Searching...
No Matches
flxCoreLog.h File Reference
#include <WString.h>
#include <map>
#include <stdarg.h>
#include <stdexcept>
#include <vector>
#include "flxCoreEventID.h"
#include "flxCoreInterface.h"
#include "flxCoreMsg.h"

Classes

class  flxLoggingDriver
 
class  flxLoggingDrvDefault
 
class  flxLogging
 

Macros

#define SP_LOGGING_ENABLED
 
#define flxLog_I(format, ...)   flxLog.logPrintf(flxLogInfo, true, format, ##__VA_ARGS__)
 
#define flxLog_W(format, ...)   flxLog.logPrintf(flxLogWarning, true, format, ##__VA_ARGS__)
 
#define flxLog_E(format, ...)   flxLog.logPrintf(flxLogError, true, format, ##__VA_ARGS__)
 
#define flxLog_N(format, ...)   flxLog.logPrintf(flxLogNone, true, format, ##__VA_ARGS__)
 
#define flxLog__(type, format, ...)   flxLog.logPrintf(type, true, format, ##__VA_ARGS__)
 
#define flxLog_I_(format, ...)   flxLog.logPrintf(flxLogInfo, false, format, ##__VA_ARGS__)
 
#define flxLog_W_(format, ...)   flxLog.logPrintf(flxLogWarning, false, format, ##__VA_ARGS__)
 
#define flxLog_E_(format, ...)   flxLog.logPrintf(flxLogError, false, format, ##__VA_ARGS__)
 
#define flxLog_N_(format, ...)   flxLog.logPrintf(flxLogNone, false, format, ##__VA_ARGS__)
 
#define flxLog___(type, format, ...)   flxLog.logPrintf(type, false, format, ##__VA_ARGS__)
 
#define flxLogM_I(format, ...)   flxLog.logPrintf(flxLogInfo, true, (const int)format, ##__VA_ARGS__)
 
#define flxLogM_W(format, ...)   flxLog.logPrintf(flxLogWarning, true, (const int)format, ##__VA_ARGS__)
 
#define flxLogM_E(format, ...)   flxLog.logPrintf(flxLogError, true, (const int)format, ##__VA_ARGS__)
 
#define flxLogM_N(format, ...)   flxLog.logPrintf(flxLogNone, true, (const int)format, ##__VA_ARGS__)
 
#define flxLogM__(type, format, ...)   flxLog.logPrintf(type, true, (const int)format, ##__VA_ARGS__)
 
#define flxLogM_I_(format, ...)   flxLog.logPrintf(flxLogInfo, false, (const int)format, ##__VA_ARGS__)
 
#define flxLogM_W_(format, ...)   flxLog.logPrintf(flxLogWarning, false, (const int)format, ##__VA_ARGS__)
 
#define flxLogM_E_(format, ...)   flxLog.logPrintf(flxLogError, false, (const int)format, ##__VA_ARGS__)
 
#define flxLogM_N_(format, ...)   flxLog.logPrintf(flxLogNone, false, (const int)format, ##__VA_ARGS__)
 
#define SP_DEBUG_LOGGING_ENABLED
 
#define flxLog_V(format, ...)   flxLog.logPrintf(flxLogVerbose, true, format, ##__VA_ARGS__)
 
#define flxLog_D(format, ...)   flxLog.logPrintf(flxLogDebug, true, format, ##__VA_ARGS__)
 
#define flxLog_V_(format, ...)   flxLog.logPrintf(flxLogVerbose, false, format, ##__VA_ARGS__)
 
#define flxLog_D_(format, ...)   flxLog.logPrintf(flxLogDebug, false, format, ##__VA_ARGS__)
 
#define flxLogM_V(format, ...)   flxLog.logPrintf(flxLogVerbose, true, (const int)format, ##__VA_ARGS__)
 
#define flxLogM_D(format, ...)   flxLog.logPrintf(flxLogDebug, true, (const int)format, ##__VA_ARGS__)
 
#define flxLogM_V_(format, ...)   flxLog.logPrintf(flxLogVerbose, false, (const int)format, ##__VA_ARGS__)
 
#define flxLogM_D_(format, ...)   flxLog.logPrintf(flxLogDebug, false, (const int)format, ##__VA_ARGS__)
 

Enumerations

enum  flxLogLevel_t {
  flxLogError = 0 , flxLogWarning , flxLogNone , flxLogInfo ,
  flxLogDebug , flxLogVerbose
}
 

Functions

 flxDefineEventID (kLogErrWarn)
 
void flxSetLoggingVerbose (void)
 
bool flxIsLoggingVerbose (void)
 
void flxSetLoggingInfo (void)
 
bool flxIsLoggingInfo (void)
 
void flxSetLoggingDebug (void)
 
bool flxIsLoggingDebug (void)
 

Variables

flxLoggingflxLog
 

Macro Definition Documentation

◆ flxLog__

#define flxLog__ (   type,
  format,
  ... 
)    flxLog.logPrintf(type, true, format, ##__VA_ARGS__)

◆ flxLog___

#define flxLog___ (   type,
  format,
  ... 
)    flxLog.logPrintf(type, false, format, ##__VA_ARGS__)

◆ flxLog_D

#define flxLog_D (   format,
  ... 
)    flxLog.logPrintf(flxLogDebug, true, format, ##__VA_ARGS__)

◆ flxLog_D_

#define flxLog_D_ (   format,
  ... 
)    flxLog.logPrintf(flxLogDebug, false, format, ##__VA_ARGS__)

◆ flxLog_E

#define flxLog_E (   format,
  ... 
)    flxLog.logPrintf(flxLogError, true, format, ##__VA_ARGS__)

◆ flxLog_E_

#define flxLog_E_ (   format,
  ... 
)    flxLog.logPrintf(flxLogError, false, format, ##__VA_ARGS__)

◆ flxLog_I

#define flxLog_I (   format,
  ... 
)    flxLog.logPrintf(flxLogInfo, true, format, ##__VA_ARGS__)

◆ flxLog_I_

#define flxLog_I_ (   format,
  ... 
)    flxLog.logPrintf(flxLogInfo, false, format, ##__VA_ARGS__)

◆ flxLog_N

#define flxLog_N (   format,
  ... 
)    flxLog.logPrintf(flxLogNone, true, format, ##__VA_ARGS__)

◆ flxLog_N_

#define flxLog_N_ (   format,
  ... 
)    flxLog.logPrintf(flxLogNone, false, format, ##__VA_ARGS__)

◆ flxLog_V

#define flxLog_V (   format,
  ... 
)    flxLog.logPrintf(flxLogVerbose, true, format, ##__VA_ARGS__)

◆ flxLog_V_

#define flxLog_V_ (   format,
  ... 
)    flxLog.logPrintf(flxLogVerbose, false, format, ##__VA_ARGS__)

◆ flxLog_W

#define flxLog_W (   format,
  ... 
)    flxLog.logPrintf(flxLogWarning, true, format, ##__VA_ARGS__)

◆ flxLog_W_

#define flxLog_W_ (   format,
  ... 
)    flxLog.logPrintf(flxLogWarning, false, format, ##__VA_ARGS__)

◆ flxLogM__

#define flxLogM__ (   type,
  format,
  ... 
)    flxLog.logPrintf(type, true, (const int)format, ##__VA_ARGS__)

◆ flxLogM_D

#define flxLogM_D (   format,
  ... 
)    flxLog.logPrintf(flxLogDebug, true, (const int)format, ##__VA_ARGS__)

◆ flxLogM_D_

#define flxLogM_D_ (   format,
  ... 
)    flxLog.logPrintf(flxLogDebug, false, (const int)format, ##__VA_ARGS__)

◆ flxLogM_E

#define flxLogM_E (   format,
  ... 
)    flxLog.logPrintf(flxLogError, true, (const int)format, ##__VA_ARGS__)

◆ flxLogM_E_

#define flxLogM_E_ (   format,
  ... 
)    flxLog.logPrintf(flxLogError, false, (const int)format, ##__VA_ARGS__)

◆ flxLogM_I

#define flxLogM_I (   format,
  ... 
)    flxLog.logPrintf(flxLogInfo, true, (const int)format, ##__VA_ARGS__)

◆ flxLogM_I_

#define flxLogM_I_ (   format,
  ... 
)    flxLog.logPrintf(flxLogInfo, false, (const int)format, ##__VA_ARGS__)

◆ flxLogM_N

#define flxLogM_N (   format,
  ... 
)    flxLog.logPrintf(flxLogNone, true, (const int)format, ##__VA_ARGS__)

◆ flxLogM_N_

#define flxLogM_N_ (   format,
  ... 
)    flxLog.logPrintf(flxLogNone, false, (const int)format, ##__VA_ARGS__)

◆ flxLogM_V

#define flxLogM_V (   format,
  ... 
)    flxLog.logPrintf(flxLogVerbose, true, (const int)format, ##__VA_ARGS__)

◆ flxLogM_V_

#define flxLogM_V_ (   format,
  ... 
)    flxLog.logPrintf(flxLogVerbose, false, (const int)format, ##__VA_ARGS__)

◆ flxLogM_W

#define flxLogM_W (   format,
  ... 
)    flxLog.logPrintf(flxLogWarning, true, (const int)format, ##__VA_ARGS__)

◆ flxLogM_W_

#define flxLogM_W_ (   format,
  ... 
)    flxLog.logPrintf(flxLogWarning, false, (const int)format, ##__VA_ARGS__)

◆ SP_DEBUG_LOGGING_ENABLED

#define SP_DEBUG_LOGGING_ENABLED

◆ SP_LOGGING_ENABLED

#define SP_LOGGING_ENABLED

Enumeration Type Documentation

◆ flxLogLevel_t

Enumerator
flxLogError 
flxLogWarning 
flxLogNone 
flxLogInfo 
flxLogDebug 
flxLogVerbose 

Function Documentation

◆ flxDefineEventID()

flxDefineEventID ( kLogErrWarn  )

◆ flxIsLoggingDebug()

bool flxIsLoggingDebug ( void  )

◆ flxIsLoggingInfo()

bool flxIsLoggingInfo ( void  )

◆ flxIsLoggingVerbose()

bool flxIsLoggingVerbose ( void  )

◆ flxSetLoggingDebug()

void flxSetLoggingDebug ( void  )

◆ flxSetLoggingInfo()

void flxSetLoggingInfo ( void  )

◆ flxSetLoggingVerbose()

void flxSetLoggingVerbose ( void  )

Variable Documentation

◆ flxLog

flxLogging& flxLog
extern