gmessages: Expose our default filtering as API

This allows programs that want to change how log messages are printed,
such as gnome-terminal (gnome-terminal#42) and Flatpak, to override
the log-writer or the legacy log-handler without having to reimplement
the G_MESSAGES_DEBUG filtering logic.

Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
Simon McVittie
2020-07-23 17:57:44 +01:00
committed by Philip Withnall
parent 10b0ece9d8
commit b17b537a7d
4 changed files with 148 additions and 26 deletions

View File

@@ -1485,6 +1485,7 @@ g_log_writer_journald
g_log_writer_standard_streams
g_log_writer_default
g_log_writer_default_set_use_stderr
g_log_writer_default_would_drop
<SUBSECTION Private>
g_log_structured_standard