upipe/ulog.h header reference

Upipe logging structure More

Header inclusion [link] 

Members [link] 

Types [link] 

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.

FieldDescription
enum uprobe_log_level level;log level of the message
const char * format;format string for the message
va_list * args;arguments for the message format string
struct uchain prefixes;list of prefix tags

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

int ulog_msg_len(struct ulog *ulog) [link] 

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

int ulog_msg_print(struct ulog *ulog, char *buf, size_t size) [link] 

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.

FieldDescription
struct uchain uchain;uchain to attach in struct ulog prefixes field
const char * tag;the prefix string

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.

IdentifierValueDescription
UPROBE_LOG_VERBOSE0verbose messages, on a uref basis
UPROBE_LOG_DEBUG1debug messages, not necessarily meaningful
UPROBE_LOG_INFO2informational messages
UPROBE_LOG_NOTICE3notice messages, normal but significant
UPROBE_LOG_WARNING4warning messages, the processing continues but may have unexpected results
UPROBE_LOG_ERROR5error messages, the processing cannot continue

struct ulog_pfx * ulog_pfx_from_uchain(struct uchain *sub) [link] 

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

struct uchain * ulog_pfx_to_uchain(struct ulog_pfx *s) [link] 

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

Valid XHTML 1.0 StrictGenerated by cmassiot on Sun Dec 14 18:31:17 2025 using MkDoc