diff options
author | Simon McVittie <smcv@collabora.com> | 2020-07-23 17:57:44 +0100 |
---|---|---|
committer | Philip Withnall <pwithnall@endlessos.org> | 2020-10-07 14:04:08 +0100 |
commit | b17b537a7de15ec66a0dd2b1c708409f415426a2 (patch) | |
tree | 8d2b1b7f64c11ae0011c11a8a36fcd85a2538ff8 /glib/gmessages.h | |
parent | 10b0ece9d8428bde0583d28ed42e227ed353271f (diff) | |
download | glib-b17b537a7de15ec66a0dd2b1c708409f415426a2.tar.gz |
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>
Diffstat (limited to 'glib/gmessages.h')
-rw-r--r-- | glib/gmessages.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/glib/gmessages.h b/glib/gmessages.h index 29bc1736e..6a28443b4 100644 --- a/glib/gmessages.h +++ b/glib/gmessages.h @@ -244,6 +244,9 @@ GLogWriterOutput g_log_writer_default (GLogLevelFlags log_level, GLIB_AVAILABLE_IN_2_68 void g_log_writer_default_set_use_stderr (gboolean use_stderr); +GLIB_AVAILABLE_IN_2_68 +gboolean g_log_writer_default_would_drop (GLogLevelFlags log_level, + const char *log_domain); /** * G_DEBUG_HERE: |