[gnome-applets] enable structured logging and set log domain



commit 4c3ef18a2266876a9f079f06564713bdd534a29f
Author: Sebastian Geiger <sbastig gmx net>
Date:   Wed Sep 7 13:20:19 2016 +0200

    enable structured logging and set log domain

 accessx-status/src/Makefile.am     |    2 ++
 battstat/src/Makefile.am           |    2 ++
 brightness/src/Makefile.am         |    2 ++
 charpick/src/Makefile.am           |    2 ++
 command/src/Makefile.am            |    2 ++
 cpufreq/src/Makefile.am            |    2 ++
 drivemount/src/Makefile.am         |    2 ++
 geyes/src/Makefile.am              |    2 ++
 gweather/src/Makefile.am           |    2 ++
 inhibit/src/Makefile.am            |    2 ++
 mini-commander/src/Makefile.am     |    2 ++
 modem-lights/src/Makefile.am       |    2 ++
 multiload/src/Makefile.am          |    2 ++
 netspeed/src/Makefile.am           |    2 ++
 sticky-notes/src/Makefile.am       |    2 ++
 timer/src/Makefile.am              |    2 ++
 tracker-search-bar/src/Makefile.am |    2 ++
 trash/src/Makefile.am              |    2 ++
 windowpicker/src/Makefile.am       |    2 ++
 19 files changed, 38 insertions(+), 0 deletions(-)
---
diff --git a/accessx-status/src/Makefile.am b/accessx-status/src/Makefile.am
index 8309e4a..041dd06 100644
--- a/accessx-status/src/Makefile.am
+++ b/accessx-status/src/Makefile.am
@@ -9,6 +9,8 @@ libaccessx_status_applet_la_CPPFLAGS = \
        -DACCESSX_PIXMAPS_DIR=\""$(pkgdatadir)/accessx-status-applet/pixmaps"\" \
        -DACCESSX_MENU_UI_DIR=\""$(uidir)"\" \
        -DGNOMELOCALEDIR=\""$(localedir)"\" \
+       -DG_LOG_DOMAIN=\"org.gnome.gnome-applets.accessx-status\" \
+       -DG_LOG_USE_STRUCTURED=1 \
        $(NULL)
 
 libaccessx_status_applet_la_CFLAGS = \
diff --git a/battstat/src/Makefile.am b/battstat/src/Makefile.am
index d1a0958..7f35c73 100644
--- a/battstat/src/Makefile.am
+++ b/battstat/src/Makefile.am
@@ -28,6 +28,8 @@ libbattery_status_applet_la_CPPFLAGS = \
        -DBATTSTAT_MENU_UI_DIR=\""$(uidir)"\" \
        -DGNOMELOCALEDIR=\""$(localedir)"\" \
        -DGTK_BUILDERDIR=\""$(pkgdatadir)/builder"\" \
+       -DG_LOG_DOMAIN=\"org.gnome.gnome-applets.battery-status\" \
+       -DG_LOG_USE_STRUCTURED=1 \
        $(NULL)
 
 libbattery_status_applet_la_CFLAGS = \
diff --git a/brightness/src/Makefile.am b/brightness/src/Makefile.am
index 08c91f5..092d2c4 100644
--- a/brightness/src/Makefile.am
+++ b/brightness/src/Makefile.am
@@ -11,6 +11,8 @@ libbrightness_applet_la_CPPFLAGS = \
        -DBRIGHTNESS_MENU_UI_DIR=\""$(uidir)"\" \
        -DGNOMELOCALEDIR=\""$(localedir)"\" \
        -DPKG_DATA_DIR=\""$(pkgdatadir)"\" \
+       -DG_LOG_DOMAIN=\"org.gnome.gnome-applets.brightness\" \
+       -DG_LOG_USE_STRUCTURED=1 \
        $(NULL)
 
 libbrightness_applet_la_CFLAGS = \
diff --git a/charpick/src/Makefile.am b/charpick/src/Makefile.am
index 55f8e08..9da901a 100644
--- a/charpick/src/Makefile.am
+++ b/charpick/src/Makefile.am
@@ -10,6 +10,8 @@ libcharacter_picker_applet_la_CPPFLAGS = \
        -I$(srcdir) \
        -DCHARPICK_MENU_UI_DIR=\""$(uidir)"\" \
        -DGNOMELOCALEDIR=\""$(localedir)"\" \
+       -DG_LOG_DOMAIN=\"org.gnome.gnome-applets.character-picker\" \
+       -DG_LOG_USE_STRUCTURED=1 \
        $(NULL)
 
 libcharacter_picker_applet_la_CFLAGS = \
diff --git a/command/src/Makefile.am b/command/src/Makefile.am
index 2ef9b99..17620f3 100644
--- a/command/src/Makefile.am
+++ b/command/src/Makefile.am
@@ -8,6 +8,8 @@ libcommand_applet_la_CPPFLAGS = \
        -I$(srcdir) \
        -DGNOMELOCALEDIR=\""$(localedir)"\" \
        -DPKG_DATA_DIR=\""$(pkgdatadir)"\" \
+       -DG_LOG_DOMAIN=\"org.gnome.gnome-applets.command\" \
+       -DG_LOG_USE_STRUCTURED=1 \
        $(NULL)
 
 libcommand_applet_la_CFLAGS = \
diff --git a/cpufreq/src/Makefile.am b/cpufreq/src/Makefile.am
index fbaf12d..8d143a5 100644
--- a/cpufreq/src/Makefile.am
+++ b/cpufreq/src/Makefile.am
@@ -14,6 +14,8 @@ libcpu_frequency_applet_la_CPPFLAGS = \
        -DGNOMELOCALEDIR=\""$(localedir)"\" \
        -DCPUFREQ_PIXMAPS_DIR=\""$(pkgdatadir)/cpufreq-applet/pixmaps"\" \
        -DGTK_BUILDERDIR=\""$(pkgdatadir)/builder"\" \
+       -DG_LOG_DOMAIN=\"org.gnome.gnome-applets.cpu-frequency\" \
+       -DG_LOG_USE_STRUCTURED=1 \
        $(NULL)
 
 libcpu_frequency_applet_la_CFLAGS = \
diff --git a/drivemount/src/Makefile.am b/drivemount/src/Makefile.am
index ad1f837..190fe84 100644
--- a/drivemount/src/Makefile.am
+++ b/drivemount/src/Makefile.am
@@ -10,6 +10,8 @@ libdrive_mount_applet_la_CPPFLAGS = \
        -I$(srcdir) \
        -DDRIVEMOUNT_MENU_UI_DIR=\""$(uidir)"\" \
        -DGNOMELOCALEDIR=\""$(localedir)"\" \
+       -DG_LOG_DOMAIN=\"org.gnome.gnome-applets.drive-mount\" \
+       -DG_LOG_USE_STRUCTURED=1 \
        $(NULL)
 
 libdrive_mount_applet_la_CFLAGS = \
diff --git a/geyes/src/Makefile.am b/geyes/src/Makefile.am
index 389bee6..f13476b 100644
--- a/geyes/src/Makefile.am
+++ b/geyes/src/Makefile.am
@@ -12,6 +12,8 @@ libgeyes_applet_la_CPPFLAGS = \
        -DGEYES_THEMES_DIR=\""$(pkgdatadir)/geyes/"\" \
        -DGEYES_MENU_UI_DIR=\""$(uidir)"\" \
        -DGNOMELOCALEDIR=\""$(localedir)"\" \
+       -DG_LOG_DOMAIN=\"org.gnome.gnome-applets.geyes\" \
+       -DG_LOG_USE_STRUCTURED=1 \
        $(NULL)
 
 libgeyes_applet_la_CFLAGS = \
diff --git a/gweather/src/Makefile.am b/gweather/src/Makefile.am
index 503fb01..bd0e1d8 100644
--- a/gweather/src/Makefile.am
+++ b/gweather/src/Makefile.am
@@ -10,6 +10,8 @@ libgweather_applet_la_CPPFLAGS = \
        -I$(top_srcdir) \
        -DGWEATHER_MENU_UI_DIR=\""$(uidir)"\" \
        -DGNOMELOCALEDIR=\""$(localedir)"\" \
+       -DG_LOG_DOMAIN=\"org.gnome.gnome-applets.gweather\" \
+       -DG_LOG_USE_STRUCTURED=1 \
        $(NULL)
 
 libgweather_applet_la_CFLAGS = \
diff --git a/inhibit/src/Makefile.am b/inhibit/src/Makefile.am
index 9ea0aeb..17571cc 100644
--- a/inhibit/src/Makefile.am
+++ b/inhibit/src/Makefile.am
@@ -11,6 +11,8 @@ libinhibit_applet_la_CPPFLAGS = \
        -DINHIBIT_MENU_UI_DIR=\""$(uidir)"\" \
        -DGNOMELOCALEDIR=\""$(localedir)"\" \
        -DPKG_DATA_DIR=\""$(pkgdatadir)"\" \
+       -DG_LOG_DOMAIN=\"org.gnome.gnome-applets.inhibit\" \
+       -DG_LOG_USE_STRUCTURED=1 \
        $(NULL)
 
 libinhibit_applet_la_CFLAGS = \
diff --git a/mini-commander/src/Makefile.am b/mini-commander/src/Makefile.am
index caea771..46a53d8 100644
--- a/mini-commander/src/Makefile.am
+++ b/mini-commander/src/Makefile.am
@@ -9,6 +9,8 @@ libmini_commander_applet_la_CPPFLAGS = \
        -DMC_MENU_UI_DIR=\""$(uidir)"\" \
        -DGNOMELOCALEDIR=\""$(localedir)"\" \
        -DGTK_BUILDERDIR=\""$(pkgdatadir)/builder"\" \
+       -DG_LOG_DOMAIN=\"org.gnome.gnome-applets.mini-commander\" \
+       -DG_LOG_USE_STRUCTURED=1 \
        $(NULL)
 
 libmini_commander_applet_la_CFLAGS = \
diff --git a/modem-lights/src/Makefile.am b/modem-lights/src/Makefile.am
index 38b62a0..e5d5e2e 100644
--- a/modem-lights/src/Makefile.am
+++ b/modem-lights/src/Makefile.am
@@ -8,6 +8,8 @@ modem_lights_appletlib_LTLIBRARIES = libmodem-lights-applet.la
 libmodem_lights_applet_la_CPPFLAGS = \
        -I. \
        -I$(srcdir) \
+       -DG_LOG_DOMAIN=\"org.gnome.gnome-applets.modem-lights\" \
+       -DG_LOG_USE_STRUCTURED=1 \
        -DMODEM_MENU_UI_DIR=\""$(uidir)"\" \
        -DGNOMELOCALEDIR=\""$(localedir)"\" \
        -DGTK_BUILDERDIR=\""$(pkgdatadir)/builder"\" \
diff --git a/multiload/src/Makefile.am b/multiload/src/Makefile.am
index 258df9c..bdbdae4 100644
--- a/multiload/src/Makefile.am
+++ b/multiload/src/Makefile.am
@@ -9,6 +9,8 @@ libmultiload_applet_la_CPPFLAGS = \
        -I$(srcdir) \
        -DMULTILOAD_MENU_UI_DIR=\""$(uidir)"\" \
        -DGNOMELOCALEDIR=\""$(localedir)"\" \
+       -DG_LOG_DOMAIN=\"org.gnome.gnome-applets.multiload\" \
+       -DG_LOG_USE_STRUCTURED=1 \
        $(NULL)
 
 libmultiload_applet_la_CFLAGS = \
diff --git a/netspeed/src/Makefile.am b/netspeed/src/Makefile.am
index d2c7f26..9be8cc8 100644
--- a/netspeed/src/Makefile.am
+++ b/netspeed/src/Makefile.am
@@ -6,6 +6,8 @@ netspeed_applet_libdir = $(pkglibdir)/$(LIBPANEL_APPLET_API_VERSION)
 netspeed_applet_lib_LTLIBRARIES = libnet-speed-applet.la
 
 libnet_speed_applet_la_CPPFLAGS = \
+       -DG_LOG_DOMAIN=\"org.gnome.gnome-applets.net-speed\" \
+       -DG_LOG_USE_STRUCTURED=1 \
        -DGNOMELOCALEDIR=\""$(localedir)"\" \
        -DNETSPEED_MENU_UI_DIR=\""$(uidir)"\" \
        -I$(top_srcdir) \
diff --git a/sticky-notes/src/Makefile.am b/sticky-notes/src/Makefile.am
index feecef6..8f5f2c8 100644
--- a/sticky-notes/src/Makefile.am
+++ b/sticky-notes/src/Makefile.am
@@ -8,6 +8,8 @@ stickynotes_applet_lib_LTLIBRARIES = libsticky-notes-applet.la
 libsticky_notes_applet_la_CPPFLAGS = \
        -I. \
        -I$(srcdir) \
+       -DG_LOG_DOMAIN=\"org.gnome.gnome-applets.sticky-notes\" \
+       -DG_LOG_USE_STRUCTURED=1 \
        -DGNOMELOCALEDIR=\""$(localedir)"\" \
        -DPKG_DATA_DIR=\""$(pkgdatadir)"\" \
        -DSTICKYNOTES_MENU_UI_DIR=\""$(uidir)"\" \
diff --git a/timer/src/Makefile.am b/timer/src/Makefile.am
index 6ef703b..a4a9d89 100644
--- a/timer/src/Makefile.am
+++ b/timer/src/Makefile.am
@@ -6,6 +6,8 @@ timer_applet_lib_LTLIBRARIES = libtimer-applet.la
 libtimer_applet_la_CPPFLAGS = \
        -I. \
        -I$(srcdir) \
+       -DG_LOG_DOMAIN=\"org.gnome.gnome-applets.timer\" \
+       -DG_LOG_USE_STRUCTURED=1 \
        -DGNOMELOCALEDIR=\""$(localedir)"\" \
        -DPKG_DATA_DIR=\""$(pkgdatadir)"\" \
        $(NULL)
diff --git a/tracker-search-bar/src/Makefile.am b/tracker-search-bar/src/Makefile.am
index 06036a9..81aa1f7 100644
--- a/tracker-search-bar/src/Makefile.am
+++ b/tracker-search-bar/src/Makefile.am
@@ -6,6 +6,8 @@ tracker_search_bar_lib_LTLIBRARIES=libtracker-search-bar-applet.la
 libtracker_search_bar_applet_la_CPPFLAGS = \
        -DGNOMELOCALEDIR=\""$(localedir)"\" \
        -DPKG_DATA_DIR=\""$(pkgdatadir)"\" \
+       -DG_LOG_DOMAIN=\"org.gnome.gnome-applets.tracker-search-bar\" \
+       -DG_LOG_USE_STRUCTURED=1 \
        -I. \
        -I$(srcdir) \
        $(NULL)
diff --git a/trash/src/Makefile.am b/trash/src/Makefile.am
index 43341ae..0c2b167 100644
--- a/trash/src/Makefile.am
+++ b/trash/src/Makefile.am
@@ -5,6 +5,8 @@ trash_lib_LTLIBRARIES=libtrash-applet.la
 
 libtrash_applet_la_CPPFLAGS = \
        -DGNOMELOCALEDIR=\""$(localedir)"\" \
+       -DG_LOG_DOMAIN=\"org.gnome.gnome-applets.trash\" \
+       -DG_LOG_USE_STRUCTURED=1 \
        -I$(top_builddir) \
        -I$(top_srcdir) \
        $(NULL)
diff --git a/windowpicker/src/Makefile.am b/windowpicker/src/Makefile.am
index 1e227ad..9597586 100644
--- a/windowpicker/src/Makefile.am
+++ b/windowpicker/src/Makefile.am
@@ -5,6 +5,8 @@ window_picker_lib_LTLIBRARIES=libwindow-picker-applet.la
 
 libwindow_picker_applet_la_CFLAGS = \
        -D_GNU_SOURCE \
+       -DG_LOG_DOMAIN=\"org.gnome.gnome-applets.window-picker\" \
+       -DG_LOG_USE_STRUCTURED=1 \
        -DGNOMELOCALEDIR=\""$(localedir)"\" \
        -DWNCK_I_KNOW_THIS_IS_UNSTABLE=1 \
        -I$(top_builddir) \


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]