gplugin/gplugin

Set all log domains to use structured logging

2021-10-12, Elliott Sales de Andrade
9abe6ad22e9c
Parents e3dbbef99710
Children 324c493cf9cf
Set all log domains to use structured logging

* Add log domains to sublibraries
* Set all log domains to use structured logging

Testing Done:
Compile and simple run only; this has no real effect on GPlugin directly.

Reviewed at https://reviews.imfreedom.org/r/1032/
--- a/gplugin-gtk3/meson.build Tue Oct 12 02:35:23 2021 -0500
+++ b/gplugin-gtk3/meson.build Tue Oct 12 02:35:57 2021 -0500
@@ -81,7 +81,7 @@
GPLUGIN_GTK3_PUBLIC_BUILT_SOURCES,
GPLUGIN_GTK3_PUBLIC_BUILT_HEADERS,
gplugin_gtk3_resources,
- c_args : ['-DGPLUGIN_GTK_COMPILATION', '-DG_LOG_DOMAIN="GPluginGtk"'],
+ c_args : ['-DGPLUGIN_GTK_COMPILATION', '-DG_LOG_USE_STRUCTURED', '-DG_LOG_DOMAIN="GPlugin-Gtk"'],
include_directories : toplevel_inc,
dependencies : [gplugin_dep, GTK3],
version : GPLUGIN_GTK3_LIBRARY_VERSION,
--- a/gplugin-gtk4/meson.build Tue Oct 12 02:35:23 2021 -0500
+++ b/gplugin-gtk4/meson.build Tue Oct 12 02:35:57 2021 -0500
@@ -67,7 +67,7 @@
GPLUGIN_GTK4_PUBLIC_BUILT_SOURCES,
GPLUGIN_GTK4_PUBLIC_BUILT_HEADERS,
gplugin_gtk4_resources,
- c_args : ['-DGPLUGIN_GTK_COMPILATION', '-DG_LOG_DOMAIN="GPluginGtk"'],
+ c_args : ['-DGPLUGIN_GTK_COMPILATION', '-DG_LOG_USE_STRUCTURED', '-DG_LOG_DOMAIN="GPlugin-Gtk"'],
include_directories : toplevel_inc,
dependencies : [gplugin_dep, GTK4],
version : GPLUGIN_GTK4_LIBRARY_VERSION,
--- a/gplugin/meson.build Tue Oct 12 02:35:23 2021 -0500
+++ b/gplugin/meson.build Tue Oct 12 02:35:57 2021 -0500
@@ -159,7 +159,7 @@
PRIVATE_HEADERS,
gplugin_h,
gplugin_native_h,
- c_args : ['-DGPLUGIN_COMPILATION', '-DG_LOG_DOMAIN="GPlugin"'],
+ c_args : ['-DGPLUGIN_COMPILATION', '-DG_LOG_USE_STRUCTURED', '-DG_LOG_DOMAIN="GPlugin"'],
include_directories : toplevel_inc,
dependencies : [GLIB, GOBJECT, GMODULE],
version : GPLUGIN_LIBRARY_VERSION,
--- a/lua/meson.build Tue Oct 12 02:35:23 2021 -0500
+++ b/lua/meson.build Tue Oct 12 02:35:57 2021 -0500
@@ -54,6 +54,7 @@
GPLUGIN_LUA_SOURCES,
GPLUGIN_LUA_HEADERS,
name_prefix : '',
+ c_args : ['-DG_LOG_USE_STRUCTURED', '-DG_LOG_DOMAIN="GPlugin-Lua"'],
dependencies : [LUA, gplugin_dep],
install : true,
install_dir : get_option('libdir') / 'gplugin'
--- a/perl5/meson.build Tue Oct 12 02:35:23 2021 -0500
+++ b/perl5/meson.build Tue Oct 12 02:35:57 2021 -0500
@@ -67,6 +67,7 @@
GPLUGIN_PERL_SOURCES,
GPLUGIN_PERL_HEADERS,
name_prefix : '',
+ c_args : ['-DG_LOG_USE_STRUCTURED', '-DG_LOG_DOMAIN="GPlugin-Perl5"'],
dependencies : [GMODULE, gplugin_dep, perl_dep, glib_perl_dep],
install : true,
install_dir : get_option('libdir') / 'gplugin'
--- a/python3/meson.build Tue Oct 12 02:35:23 2021 -0500
+++ b/python3/meson.build Tue Oct 12 02:35:57 2021 -0500
@@ -65,6 +65,7 @@
GPLUGIN_PYTHON3_SOURCES,
GPLUGIN_PYTHON3_HEADERS,
name_prefix : '',
+ c_args : ['-DG_LOG_USE_STRUCTURED', '-DG_LOG_DOMAIN="GPlugin-Python3"'],
dependencies : [PYTHON3, PYGOBJECT, gplugin_dep],
install : true,
install_dir : get_option('libdir') / 'gplugin'
--- a/tcc/meson.build Tue Oct 12 02:35:23 2021 -0500
+++ b/tcc/meson.build Tue Oct 12 02:35:57 2021 -0500
@@ -22,6 +22,7 @@
GPLUGIN_TCC_SOURCES,
GPLUGIN_TCC_HEADERS,
name_prefix : '',
+ c_args : ['-DG_LOG_USE_STRUCTURED', '-DG_LOG_DOMAIN="GPlugin-TCC"'],
dependencies : [TCC, gplugin_dep],
install : true,
install_dir : get_option('libdir') / 'gplugin'