[gtk+] Opt in to structured logging
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Opt in to structured logging
- Date: Sat, 23 Jul 2016 03:13:31 +0000 (UTC)
commit 82fd72a477682dce8383485372192130aa440f77
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Jul 22 23:11:44 2016 -0400
Opt in to structured logging
Define G_LOG_USE_STRUCTURED, so that all our g_debug, g_warning,
etc calls directly use structured logging and provide source information.
gdk/Makefile.am | 1 +
gdk/broadway/Makefile.am | 1 +
gdk/mir/Makefile.am | 1 +
gdk/quartz/Makefile.am | 1 +
gdk/wayland/Makefile.am | 1 +
gdk/win32/Makefile.am | 1 +
gdk/x11/Makefile.am | 1 +
gtk/Makefile.am | 1 +
8 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/gdk/Makefile.am b/gdk/Makefile.am
index 91da7bd..188ff56 100644
--- a/gdk/Makefile.am
+++ b/gdk/Makefile.am
@@ -35,6 +35,7 @@ EXTRA_DIST += \
GDK_CFLAGS_DEFINES = \
-DG_LOG_DOMAIN=\"Gdk\" \
+ -DG_LOG_USE_STRUCTURED=1 \
-DGDK_COMPILATION
diff --git a/gdk/broadway/Makefile.am b/gdk/broadway/Makefile.am
index 59dc5d0..f1c3923 100644
--- a/gdk/broadway/Makefile.am
+++ b/gdk/broadway/Makefile.am
@@ -7,6 +7,7 @@ libgdkbroadwayincludedir = $(includedir)/gtk-3.0/gdk/broadway
AM_CPPFLAGS = \
-DG_LOG_DOMAIN=\"Gdk\" \
+ -DG_LOG_USE_STRUCTURED=1 \
-DGDK_COMPILATION \
-I$(top_srcdir) \
-I$(top_srcdir)/gdk \
diff --git a/gdk/mir/Makefile.am b/gdk/mir/Makefile.am
index ea2dac8..71b6e37 100644
--- a/gdk/mir/Makefile.am
+++ b/gdk/mir/Makefile.am
@@ -6,6 +6,7 @@ libgdkmirincludedir = $(includedir)/gtk-3.0/gdk/mir
AM_CPPFLAGS = \
-DG_LOG_DOMAIN=\"Gdk\" \
+ -DG_LOG_USE_STRUCTURED=1 \
-DGDK_COMPILATION \
-I$(top_srcdir) \
-I$(top_srcdir)/gdk \
diff --git a/gdk/quartz/Makefile.am b/gdk/quartz/Makefile.am
index 8954849..18fdbd3 100644
--- a/gdk/quartz/Makefile.am
+++ b/gdk/quartz/Makefile.am
@@ -5,6 +5,7 @@ libgdkquartzincludedir = $(includedir)/gtk-3.0/gdk/quartz
AM_CPPFLAGS = \
-DG_LOG_DOMAIN=\"Gdk\" \
+ -DG_LOG_USE_STRUCTURED=1 \
-DGDK_COMPILATION \
-I$(top_srcdir) \
-I$(top_srcdir)/gdk \
diff --git a/gdk/wayland/Makefile.am b/gdk/wayland/Makefile.am
index ba568d7..fdadb24 100644
--- a/gdk/wayland/Makefile.am
+++ b/gdk/wayland/Makefile.am
@@ -6,6 +6,7 @@ libgdkwaylandincludedir = $(includedir)/gtk-3.0/gdk/wayland
AM_CPPFLAGS = \
-DG_LOG_DOMAIN=\"Gdk\" \
+ -DG_LOG_USE_STRUCTURED=1 \
-DGDK_COMPILATION \
-I$(top_srcdir) \
-I$(top_srcdir)/gdk \
diff --git a/gdk/win32/Makefile.am b/gdk/win32/Makefile.am
index 5b3af48..991bf70 100644
--- a/gdk/win32/Makefile.am
+++ b/gdk/win32/Makefile.am
@@ -6,6 +6,7 @@ libgdkwin32includedir = $(includedir)/gtk-3.0/gdk/win32
AM_CPPFLAGS = \
-DG_LOG_DOMAIN=\"Gdk\" \
+ -DG_LOG_USE_STRUCTURED=1 \
-DINSIDE_GDK_WIN32 \
-I$(top_srcdir) \
-I$(top_srcdir)/gdk \
diff --git a/gdk/x11/Makefile.am b/gdk/x11/Makefile.am
index 6223e7e..6289f3a 100644
--- a/gdk/x11/Makefile.am
+++ b/gdk/x11/Makefile.am
@@ -6,6 +6,7 @@ libgdkx11includedir = $(includedir)/gtk-3.0/gdk/x11
AM_CPPFLAGS = \
-DG_LOG_DOMAIN=\"Gdk\" \
+ -DG_LOG_USE_STRUCTURED=1 \
-DGDK_COMPILATION \
-I$(top_srcdir) \
-I$(top_srcdir)/gdk \
diff --git a/gtk/Makefile.am b/gtk/Makefile.am
index 81692ce..611b96e 100644
--- a/gtk/Makefile.am
+++ b/gtk/Makefile.am
@@ -4,6 +4,7 @@ include $(top_srcdir)/Makefile.decl
GTK_BASE_CFLAGS_DEFINES = \
-DG_LOG_DOMAIN=\"Gtk\" \
+ -DG_LOG_USE_STRUCTURED=1 \
-DGTK_VERSION=\"$(GTK_VERSION)\" \
-DGTK_BINARY_VERSION=\"$(GTK_BINARY_VERSION)\" \
-DGTK_COMPILATION \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]