le_log.h
Go to the documentation of this file.
9 * informational, and debugging messages. These messages can be turned on or off remotely and pushed or pulled40 * By default, app processes will have their @c stdout and @c stderr redirected to the @c syslog. Each51 * connected to something like a pipe it's bulk buffered, which means a flush doesn't occur until the buffer is full.54 * the @c setlinebuf(stdout) system call can be used. Alternatively, @c fflush(stdout) can be called \65 * All of them accept printf-style arguments, consisting of a format string followed by zero or more84 * Similar to the basic macros, but these contain a conditional expression as their first parameter. If this expression equals112 * Always kills the calling process after logging the message at EMERGENCY level (never returns).140 * // Now I can go ahead and use objPtr, knowing that if it was NULL then LE_FATAL_IF() would not166 * LE_TRACE(NewShapeTraceRef, "Created %p with position (%d,%d).", shapePtr, shapePtr->x, shapePtr->y);176 * through configuration settings and runtime log control tools. See @ref c_log_controlling below.186 * The @ref le_result_t macro supports printing an error condition in a human-readable text string.227 * To enable all LE_TRACE statements tagged with the keyword "foo" in a component called "myComp"250 * Environment variables can be used to control the default log settings, taking effect immediately253 * Settings in the Log Control Daemon (applied through configuration and/or the log control tool)314 Jan 3 02:37:56 INFO | processName[pid]/componentName T=threadName | fileName.c funcName() lineNum | Message342 * If the fault action for that app's process is to reboot the target, the output location is changed to371 //--------------------------------------------------------------------------------------------------375 //--------------------------------------------------------------------------------------------------390 //--------------------------------------------------------------------------------------------------431 //--------------------------------------------------------------------------------------------------438 //--------------------------------------------------------------------------------------------------444 //--------------------------------------------------------------------------------------------------451 //--------------------------------------------------------------------------------------------------459 //--------------------------------------------------------------------------------------------------461 //--------------------------------------------------------------------------------------------------465 //--------------------------------------------------------------------------------------------------474 //--------------------------------------------------------------------------------------------------478 * Accepts printf-style arguments, consisting of a format string followed by zero or more parameters481 //--------------------------------------------------------------------------------------------------486 #define LE_DUMP(dataPtr, dataLength) _le_LogData(dataPtr, dataLength, STRINGIZE(LE_FILENAME), __func__, __LINE__)499 //--------------------------------------------------------------------------------------------------501 * The following macros are used to send log messages at different severity levels conditionally.505 * Accepts printf-style arguments, consisting of a format string followed by zero or more parameters508 //--------------------------------------------------------------------------------------------------530 //--------------------------------------------------------------------------------------------------535 * Accepts printf-style arguments, consisting of a format string followed by zero or more parameters538 //--------------------------------------------------------------------------------------------------543 //--------------------------------------------------------------------------------------------------548 * Accepts printf-style arguments, consisting of a format string followed by zero or more parameters551 //--------------------------------------------------------------------------------------------------556 //--------------------------------------------------------------------------------------------------558 * This macro does nothing if the condition is true, otherwise it logs the condition expression as561 //--------------------------------------------------------------------------------------------------566 //--------------------------------------------------------------------------------------------------568 * This macro does nothing if the condition is LE_OK (0), otherwise it logs that the expression did571 //--------------------------------------------------------------------------------------------------576 //--------------------------------------------------------------------------------------------------587 //--------------------------------------------------------------------------------------------------597 //--------------------------------------------------------------------------------------------------605 //--------------------------------------------------------------------------------------------------609 //--------------------------------------------------------------------------------------------------613 //--------------------------------------------------------------------------------------------------628 //--------------------------------------------------------------------------------------------------634 //--------------------------------------------------------------------------------------------------636 (644 //--------------------------------------------------------------------------------------------------650 //--------------------------------------------------------------------------------------------------652 (660 //--------------------------------------------------------------------------------------------------668 //--------------------------------------------------------------------------------------------------670 (678 //--------------------------------------------------------------------------------------------------682 //--------------------------------------------------------------------------------------------------684 (699 //--------------------------------------------------------------------------------------------------706 //--------------------------------------------------------------------------------------------------708 (716 //--------------------------------------------------------------------------------------------------723 //--------------------------------------------------------------------------------------------------725 (static le_log_TraceRef_t le_log_GetTraceRef(const char *keywordPtr)Definition: le_log.h:636static void le_log_EnableTrace(const le_log_TraceRef_t traceRef)Definition: le_log.h:708static void le_log_SetFilterLevel(le_log_Level_t level)Definition: le_log.h:670Definition: le_log.h:381const char * _le_log_GetResultCodeString(le_result_t resultCode)Function that does the real work of translating result codes. See LE_RESULT_TXT.Definition: le_log.h:383Emergency. A fatal error has occurred. A process is being terminated.Definition: le_log.h:385static bool le_log_IsTraceEnabled(const le_log_TraceRef_t traceRef)Definition: le_log.h:652static void le_log_DisableTrace(const le_log_TraceRef_t traceRef)Definition: le_log.h:725