![]() |
reactor-c 1.0
C Runtime for Lingua Franca
|
Logging API for the C target of Lingua Franca. More...
#include <stdarg.h>Go to the source code of this file.
Macros | |
| #define | LOG_LEVEL_ALL 255 |
| All log levels. | |
| #define | LOG_LEVEL_DEBUG 4 |
| Debug log level. | |
| #define | LOG_LEVEL_ERROR 0 |
| Error log level, which is the lowest log level. | |
| #define | LOG_LEVEL_INFO 2 |
| Warning log level. | |
| #define | LOG_LEVEL_LOG 3 |
| Log log level. | |
| #define | LOG_LEVEL_WARNING 1 |
| Warning log level. | |
Typedefs | |
| typedef void | print_message_function_t(const char *, va_list) |
| Message print function type. | |
Functions | |
| void | lf_print (const char *format,...) ATTRIBUTE_FORMAT_PRINTF(1 |
| Report an informational message on stdout with a newline appended at the end. | |
| void void void | lf_print_debug (const char *format,...) ATTRIBUTE_FORMAT_PRINTF(1 |
| Report an debug message on stdout with the prefix "DEBUG: " and a newline appended at the end. | |
| void void void void | lf_print_error (const char *format,...) ATTRIBUTE_FORMAT_PRINTF(1 |
| Report an error with the prefix "ERROR: " and a newline appended at the end. | |
| void void void void void void | lf_print_error_and_exit (const char *format,...) ATTRIBUTE_FORMAT_PRINTF(1 |
| Report an error with the prefix "ERROR: " and a newline appended at the end, then exit with the failure code EXIT_FAILURE. | |
| void void void void void void void | lf_print_error_system_failure (const char *format,...) |
| Report an error and exit just like lf_print_error_and_exit(), but also print the system error message associated with the error. | |
| void void | lf_print_log (const char *format,...) ATTRIBUTE_FORMAT_PRINTF(1 |
| Report an log message on stdout with the prefix "LOG: " and a newline appended at the end. | |
| void void void void void | lf_print_warning (const char *format,...) ATTRIBUTE_FORMAT_PRINTF(1 |
| Report a warning with the prefix "WARNING: " and a newline appended at the end. | |
| void | lf_register_print_function (print_message_function_t *function, int log_level) |
| Register a function to display messages. | |
Logging API for the C target of Lingua Franca.
This file defines the logging API used throughout the Lingua Franca runtime. It provides functions for different log levels (error, warning, info, log, debug) and allows for custom message handling through function registration.