#include <LOW_helper_msglog.h>
Public Types | |
enum | debugLevel_t { portSerial_dl, devDS1820_dl, linkLock_dl, all_dl } |
Static Public Methods | |
void | enableDebugLevel (const debugLevel_t inLevel, const bool isEnabled=true) |
void | printPerror (const int inErrno, const char *inFormat,...) |
Print error message. More... | |
void | printError (const char *inFormat,...) |
Print error message. More... | |
void | printWarning (const char *inFormat,...) |
Print warning. More... | |
void | printMessage (const char *inFormat,...) |
Print message. More... | |
void | printDebug (const debugLevel_t inLevel, const char *inFormat,...) |
Print debug message. More... | |
Private Types | |
enum | logType_t { msg_log, warn_log, err_log, debug_log } |
Static Private Methods | |
void | va_printToLog (const logType_t inLogType, const char *inFormat, va_list inParamList) |
unsigned int | fprintLogHeader (FILE *inExtraStream, FILE *inStdStream) |
void | fprintfMulti (FILE *inExtraStream, FILE *inStdStream, const char *inFormat,...) |
void | vfprintfMulti (FILE *inExtraStream, FILE *inStdStream, const char *inFormat, va_list inAp) |
void * | callocCheck (const size_t inSize) |
Static Private Attributes | |
bool | errorOccured = false |
bool | debugLevels [all_dl] |
bool | useStdMsgStream = true |
bool | useStdWarnStream = true |
bool | useStdErrStream = true |
bool | useStdDebugStream = true |
bool | useExtraMsgStream = false |
bool | useExtraWarnStream = false |
bool | useExtraErrStream = false |
bool | useExtraDebugStream = false |
FILE * | stdOutStream = stdout |
FILE * | stdWarnStream = stderr |
FILE * | stdErrStream = stderr |
FILE * | stdDebugStream = stderr |
FILE * | extraOutStream = NULL |
FILE * | extraWarnStream = NULL |
FILE * | extraErrStream = NULL |
FILE * | extraDebugStream = NULL |
Finish implementation of class.
Definition at line 39 of file LOW_helper_msglog.h.
|
Definition at line 49 of file LOW_helper_msglog.h. |
|
Definition at line 114 of file LOW_helper_msglog.h. Referenced by va_printToLog(). |
|
Definition at line 287 of file LOW_helper_msglog.cpp. References printPerror(). Referenced by printPerror(), and va_printToLog(). |
|
Definition at line 67 of file LOW_helper_msglog.cpp. References debugLevels. |
|
Definition at line 271 of file LOW_helper_msglog.cpp. References vfprintfMulti(). Referenced by fprintLogHeader(), and va_printToLog(). |
|
Definition at line 257 of file LOW_helper_msglog.cpp. References fprintfMulti(), and LOW_platformMisc::getThreadID(). Referenced by va_printToLog(). |
|
Print debug message.
Definition at line 154 of file LOW_helper_msglog.cpp. References all_dl, debug_log, debugLevels, and va_printToLog(). Referenced by LOW_link::commLock::commLock(), LOW_devDS1820::LOW_devDS1820(), LOW_portSerial_Linux::tty_readByte(), LOW_portSerial_Linux::tty_write(), and LOW_link::commLock::~commLock(). |
|
Print error message.
Definition at line 115 of file LOW_helper_msglog.cpp. References err_log, and va_printToLog(). Referenced by LOW_exception::logException(), and printPerror(). |
|
Print message.
Definition at line 141 of file LOW_helper_msglog.cpp. References msg_log, and va_printToLog(). |
|
Print error message.
Definition at line 81 of file LOW_helper_msglog.cpp. References callocCheck(), and printError(). Referenced by callocCheck(), and LOW_exception::logException(). |
|
Print warning.
Definition at line 128 of file LOW_helper_msglog.cpp. References va_printToLog(), and warn_log. |
|
Definition at line 201 of file LOW_helper_msglog.cpp. References callocCheck(), debug_log, err_log, extraDebugStream, extraErrStream, extraOutStream, extraWarnStream, fprintfMulti(), fprintLogHeader(), logType_t, msg_log, stdDebugStream, stdErrStream, stdOutStream, stdWarnStream, useExtraDebugStream, useExtraErrStream, useExtraMsgStream, useExtraWarnStream, useStdDebugStream, useStdErrStream, useStdMsgStream, useStdWarnStream, and warn_log. Referenced by printDebug(), printError(), printMessage(), and printWarning(). |
|
Definition at line 280 of file LOW_helper_msglog.cpp. Referenced by fprintfMulti(). |
|
Definition at line 41 of file LOW_helper_msglog.cpp. Referenced by enableDebugLevel(), and printDebug(). |
|
Definition at line 40 of file LOW_helper_msglog.cpp. |
|
Definition at line 59 of file LOW_helper_msglog.cpp. Referenced by va_printToLog(). |
|
Definition at line 58 of file LOW_helper_msglog.cpp. Referenced by va_printToLog(). |
|
Definition at line 56 of file LOW_helper_msglog.cpp. Referenced by va_printToLog(). |
|
Definition at line 57 of file LOW_helper_msglog.cpp. Referenced by va_printToLog(). |
|
Definition at line 55 of file LOW_helper_msglog.cpp. Referenced by va_printToLog(). |
|
Definition at line 54 of file LOW_helper_msglog.cpp. Referenced by va_printToLog(). |
|
Definition at line 52 of file LOW_helper_msglog.cpp. Referenced by va_printToLog(). |
|
Definition at line 53 of file LOW_helper_msglog.cpp. Referenced by va_printToLog(). |
|
Definition at line 50 of file LOW_helper_msglog.cpp. Referenced by va_printToLog(). |
|
Definition at line 49 of file LOW_helper_msglog.cpp. Referenced by va_printToLog(). |
|
Definition at line 47 of file LOW_helper_msglog.cpp. Referenced by va_printToLog(). |
|
Definition at line 48 of file LOW_helper_msglog.cpp. Referenced by va_printToLog(). |
|
Definition at line 46 of file LOW_helper_msglog.cpp. Referenced by va_printToLog(). |
|
Definition at line 45 of file LOW_helper_msglog.cpp. Referenced by va_printToLog(). |
|
Definition at line 43 of file LOW_helper_msglog.cpp. Referenced by va_printToLog(). |
|
Definition at line 44 of file LOW_helper_msglog.cpp. Referenced by va_printToLog(). |