[tracker-miners/sam/debug: 2/2] Use structured logging
- From: Sam Thursfield <sthursfield src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker-miners/sam/debug: 2/2] Use structured logging
- Date: Mon, 20 Apr 2020 00:53:13 +0000 (UTC)
commit 6f8db3bfb1cf701e2a391b1a698d0500adff9cc5
Author: Sam Thursfield <sam afuera me uk>
Date: Mon Apr 20 02:44:26 2020 +0200
Use structured logging
There now isn't a way to control the log verbosity of the Tracker
daemons, so all g_debug() output will go to the syslog or journal.
We need to ensure the debug output is useful, but by switching to
structured logging we also ensure that users will be able to filter out
the debug messages easily.
See https://blog.gtk.org/2017/05/04/logging-and-more/ for more details
about structured logging.
meson.build | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/meson.build b/meson.build
index 3d8afa9c9..dd9c2617b 100644
--- a/meson.build
+++ b/meson.build
@@ -119,6 +119,7 @@ add_project_arguments('-Wno-pointer-sign', language: 'c')
add_project_arguments('-DTRACKER_COMPILATION', language: 'c')
add_project_arguments('-DG_LOG_DOMAIN="Tracker"', language: 'c')
+add_project_arguments('-DG_LOG_STRUCTURED=1', language: 'c')
debug_cflags = []
buildtype = get_option('buildtype')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]