mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-10 13:29:58 -05:00
log: Add a new log target to a file descriptor
This patch enables logging of text debug messages (pa_log feature) into a file or a device driver. Example : pulseaudio --log-target=file:./mylog.txt (Minor tweaks by Colin + Arun)
This commit is contained in:
parent
26366664c1
commit
f7acd4bdab
4 changed files with 56 additions and 2 deletions
|
|
@ -36,6 +36,7 @@ typedef enum pa_log_target {
|
|||
PA_LOG_STDERR, /* default */
|
||||
PA_LOG_SYSLOG,
|
||||
PA_LOG_NULL, /* to /dev/null */
|
||||
PA_LOG_FD, /* to a file descriptor, e.g. a char device */
|
||||
PA_LOG_TARGET_MAX
|
||||
} pa_log_target_t;
|
||||
|
||||
|
|
@ -74,6 +75,10 @@ void pa_log_set_level(pa_log_level_t l);
|
|||
/* Set flags */
|
||||
void pa_log_set_flags(pa_log_flags_t flags, pa_log_merge_t merge);
|
||||
|
||||
/* Set the file descriptor of the logging device.
|
||||
Daemon conf is in charge of opening this device */
|
||||
void pa_log_set_fd(int fd);
|
||||
|
||||
/* Enable backtrace */
|
||||
void pa_log_set_show_backtrace(unsigned nlevels);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue