summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGaël Bonithon <gael@xfce.org>2021-12-28 13:18:28 +0100
committerGaël Bonithon <gael@xfce.org>2021-12-29 13:09:43 +0100
commit4efd70c9e26a93800091b3252ff5ace12eeb3c1f (patch)
treef9bb494e39392c2e7a0d3b7e7c32c87e801c03c6
parente985e8489caf66a094c8a44bceef3a71f52f98e5 (diff)
downloadtumbler-4efd70c9e26a93800091b3252ff5ace12eeb3c1f.tar.gz
Use GLib structured logging
The move to GLib 2.56 in b014aabd2d78472a18a9b863e51dd6f1631d78cb allows to use structured logging in GLib logging macros. This makes it more suitable for viewing via tools such as `journalctl`, and adds some message location information.
-rw-r--r--configure.ac1
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index cba5e8a..a41dfd8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -143,6 +143,7 @@ dnl *** Check for required packages ***
dnl ***********************************
AC_DEFINE(GLIB_VERSION_MAX_ALLOWED, GLIB_VERSION_2_56, Warn when using post 2_56 APIs)
AC_DEFINE(GLIB_VERSION_MIN_REQUIRED, GLIB_VERSION_2_56, Don't warn about post 2_56 deprecations)
+AC_DEFINE(G_LOG_USE_STRUCTURED, 1, Use structured logging)
PKG_CHECK_MODULES([GLIB], [glib-2.0 >= 2.56.0])
PKG_CHECK_MODULES([GIO], [gio-2.0 >= 2.56.0])
PKG_CHECK_MODULES([GIO_UNIX], [gio-unix-2.0 >= 2.56.0])