ES Log
File: es_log.h
Description: ES Logging module
Defines
-
log_lvl_t
[source] ES log levels
- Enumerators:
TRACE: A log level describing events showing step by step execution of your code that can be ignored during the standard operation, but may be useful during extended debugging sessions.
DEBUG: A log level used for events considered to be useful during software debugging when more granular information is needed.
INFO: An event happened, the event is purely informative and can be ignored during normal operations.
WARNING: Unexpected behavior happened inside the application, but it is continuing its work and the key business features are operating as expected.
ERROR: One or more functionalities are not working, preventing some functionalities from working correctly.
CRITICAL: One or more key business functionalities are not working and the whole system doesn’t fulfill the business functionalities.
MACROS
Interface Functions
-
void es_log_set_lvl(log_lvl_t level)
[source] Set logging level
- Parameters:
level – Logging level to set
-
log_lvl_t es_log_get_lvl(void)
[source] Retrieve the current log level
- Returns:
the current logging level as an integer
-
void es_log_msg(const char *module, int line, int level, const char *format, ...)
[source] Log a message
Note
Currently the log stream is directed to stdout but it can be redirected to any application spcefic stream.
- Parameters:
module: – module from which the message has been sent
line: – source code line number
level: – message level
format: – string formatter for the message