|
void | av_log (void *avcl, int level, const char *fmt,...) av_printf_format(3 |
| Send the specified message to the log if the level is less than or equal to the current av_log_level. More...
|
|
void void | av_vlog (void *avcl, int level, const char *fmt, va_list vl) |
| Send the specified message to the log if the level is less than or equal to the current av_log_level. More...
|
|
int | av_log_get_level (void) |
| Get the current log level. More...
|
|
void | av_log_set_level (int level) |
| Set the log level. More...
|
|
void | av_log_set_callback (void(*callback)(void *, int, const char *, va_list)) |
| Set the logging callback. More...
|
|
void | av_log_default_callback (void *avcl, int level, const char *fmt, va_list vl) |
| Default logging callback. More...
|
|
const char * | av_default_item_name (void *ctx) |
| Return the context name. More...
|
|
AVClassCategory | av_default_get_category (void *ptr) |
|
void | av_log_format_line (void *ptr, int level, const char *fmt, va_list vl, char *line, int line_size, int *print_prefix) |
| Format a line of log the same way as the default callback. More...
|
|
void | av_log_set_flags (int arg) |
|
int | av_log_get_flags (void) |
|
#define AV_LOG_SKIP_REPEATED 1 |
Skip repeated messages, this requires the user app to use av_log() instead of (f)printf as the 2 would otherwise interfere and lead to "Last message repeated x times" messages below (f)printf messages with some bad luck.
Also to receive the last, "last repeated" line if any, the user app must call av_log(NULL, AV_LOG_QUIET, "%s", ""); at the end
Definition at line 342 of file log.h.
void av_log |
( |
void * |
avcl, |
|
|
int |
level, |
|
|
const char * |
fmt, |
|
|
|
... |
|
) |
| |
Send the specified message to the log if the level is less than or equal to the current av_log_level.
By default, all logging messages are sent to stderr. This behavior can be altered by setting a different logging callback function.
- See also
- av_log_set_callback
- Parameters
-
avcl | A pointer to an arbitrary struct of which the first field is a pointer to an AVClass struct or NULL if general log. |
level | The importance level of the message expressed using a Logging Constant. |
fmt | The format string (printf-compatible) that specifies how subsequent arguments are converted to output. |
- Examples:
- filter_audio.c, filtering_audio.c, filtering_video.c, and transcoding.c.
Referenced by del_op(), encode_write_frame(), filter_encode_write_frame(), flush_encoder(), init_filter(), init_filter_graph(), init_filters(), list_op(), main(), move_op(), open_input_file(), and open_output_file().