upipe/ulog.h header reference
Upipe logging structure More
Header inclusion [link]
Members [link]
Types [link]
- struct ulog
- struct ulog_pfx
- enum uprobe_log_level
Functions [link]
- void ulog_init(struct ulog *ulog, enum uprobe_log_level level, const char *format, va_list *args)
- int ulog_msg_len(struct ulog *ulog)
- int ulog_msg_print(struct ulog *ulog, char *buf, size_t size)
Description [link]
Upipe logging structure
Members detail [link]
#define _UPIPE_ULOG_H_ [link]
This macro is declared in upipe/ulog.h source file, line 29.
struct ulog [link]
This struct is declared in upipe/ulog.h source file, line 66.
This struct describe a log message.
void ulog_init(struct ulog *ulog, enum uprobe_log_level level, const char *format, va_list *args) [link]
This function is declared in upipe/ulog.h source file, line 88.
This function initializes an ulog structure.
Parameter list:
- ulog: pointer to the ulog structure to initialize
- level: the level of the log
- format: format of the log message
- args: arguments for the format string
This function is declared in upipe/ulog.h source file, line 124.
This function returns the ulog message length.
Parameter list:
- ulog: pointer to the ulog structure
The return value is the message length excluding zero terminator
This function is declared in upipe/ulog.h source file, line 107.
This function print the ulog message in the provided buffer.
Parameter list:
- ulog: pointer to the ulog structure
- buf: the destination buffer
- size: the size of the buffer
The return value is the message length excluding zero terminator
struct ulog_pfx [link]
This struct is declared in upipe/ulog.h source file, line 56.
This struct describe a prefix tag for a log message.
enum uprobe_log_level [link]
This enum is declared in upipe/ulog.h source file, line 39.
This enum defines the levels of log messages.
| Identifier | Value | Description |
|---|---|---|
| UPROBE_LOG_VERBOSE | 0 | verbose messages, on a uref basis |
| UPROBE_LOG_DEBUG | 1 | debug messages, not necessarily meaningful |
| UPROBE_LOG_INFO | 2 | informational messages |
| UPROBE_LOG_NOTICE | 3 | notice messages, normal but significant |
| UPROBE_LOG_WARNING | 4 | warning messages, the processing continues but may have unexpected results |
| UPROBE_LOG_ERROR | 5 | error messages, the processing cannot continue |
This function is for internal use only.
This function is declared in UBASE_FROM_TO function like macro expansion, line 19 in upipe/ulog.h source file, line 63.
This function returns a pointer to uchain.
Parameter list:
- sub: pointer to struct uchain
The return value is pointer to struct ulog_pfx
This function is for internal use only.
This function is declared in UBASE_FROM_TO function like macro expansion, line 9 in upipe/ulog.h source file, line 63.
This function returns a pointer to uchain.
Parameter list:
- ulog_pfx: pointer to struct ulog_pfx
The return value is pointer to struct uchain