mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-06 13:29:56 -05:00
optionally add timestampts to every line logged
This commit is contained in:
parent
54da71ef5d
commit
bdcb3a493c
3 changed files with 39 additions and 14 deletions
|
|
@ -49,8 +49,10 @@ typedef enum pa_log_level {
|
|||
/* Set an identification for the current daemon. Used when logging to syslog. */
|
||||
void pa_log_set_ident(const char *p);
|
||||
|
||||
typedef void (*pa_log_func_t)(pa_log_level_t t, const char*s);
|
||||
|
||||
/* Set another log target. If t is PA_LOG_USER you may specify a function that is called every log string */
|
||||
void pa_log_set_target(pa_log_target_t t, void (*func)(pa_log_level_t t, const char*s));
|
||||
void pa_log_set_target(pa_log_target_t t, pa_log_func_t func);
|
||||
|
||||
/* Minimal log level */
|
||||
void pa_log_set_maximal_level(pa_log_level_t l);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue