pidgin/pidgin

Enable structured logging in Finch

2021-10-18, Elliott Sales de Andrade
294d7d9c1cd6
Parents 1570d8844e9a
Children 755e1554051c
Enable structured logging in Finch

And add log domains.

Testing Done:
Compile only.

Reviewed at https://reviews.imfreedom.org/r/1062/
--- a/finch/meson.build Mon Oct 18 01:47:59 2021 -0500
+++ b/finch/meson.build Mon Oct 18 01:51:02 2021 -0500
@@ -179,7 +179,14 @@
libfinch_inc = include_directories('.')
libfinch = shared_library('finch3',
libfinch_SOURCES + libfinch_built_headers + libfinch_built_sources,
- c_args : ['-DSTANDALONE', '-DGNTSEAL_ENABLE', '-DFINCH_COMPILATION', ncurses_header],
+ c_args : [
+ '-DSTANDALONE',
+ '-DGNTSEAL_ENABLE',
+ '-DFINCH_COMPILATION',
+ ncurses_header,
+ '-DG_LOG_USE_STRUCTURED',
+ '-DG_LOG_DOMAIN="Finch"',
+ ],
include_directories : [toplevel_inc],
version : PURPLE_LIB_VERSION,
dependencies : [libpurple_dep, libgnt_dep, ncurses, glib, winmm],
@@ -220,7 +227,12 @@
finch = executable('finch3',
finch_SOURCES,
- c_args : ['-DSTANDALONE', '-DGNTSEAL_ENABLE'],
+ c_args : [
+ '-DSTANDALONE',
+ '-DGNTSEAL_ENABLE',
+ '-DG_LOG_USE_STRUCTURED',
+ '-DG_LOG_DOMAIN="Finch"',
+ ],
dependencies : [libpurple_dep, libgnt_dep, libfinch_dep],
install : true)
--- a/finch/plugins/meson.build Mon Oct 18 01:47:59 2021 -0500
+++ b/finch/plugins/meson.build Mon Oct 18 01:51:02 2021 -0500
@@ -1,32 +1,41 @@
if x11.found()
gntclipboard = library('gntclipboard', 'gntclipboard.c',
+ c_args : ['-DG_LOG_USE_STRUCTURED', '-DG_LOG_DOMAIN="Gnt-Clipboard"'],
dependencies : [x11, libpurple_dep, libfinch_dep, glib],
name_prefix : '',
install : true, install_dir : FINCH_PLUGINDIR)
gntgf = library('gntgf', 'gntgf.c',
- c_args : ncurses_header,
+ c_args : [
+ ncurses_header,
+ '-DG_LOG_USE_STRUCTURED',
+ '-DG_LOG_DOMAIN="Gnt-GF"',
+ ],
dependencies : [x11, libpurple_dep, libfinch_dep, ncurses, glib],
name_prefix : '',
install : true, install_dir : FINCH_PLUGINDIR)
endif
gnthistory = library('gnthistory', 'gnthistory.c',
+ c_args : ['-DG_LOG_USE_STRUCTURED', '-DG_LOG_DOMAIN="Gnt-History"'],
dependencies : [libpurple_dep, libfinch_dep, glib],
name_prefix : '',
install : true, install_dir : FINCH_PLUGINDIR)
gntlastlog = library('gntlastlog', 'lastlog.c',
+ c_args : ['-DG_LOG_USE_STRUCTURED', '-DG_LOG_DOMAIN="Gnt-LastLog"'],
dependencies : [libpurple_dep, libfinch_dep, ncurses, glib],
name_prefix : '',
install : true, install_dir : FINCH_PLUGINDIR)
gnttinyurl = library('gnttinyurl', 'gnttinyurl.c',
+ c_args : ['-DG_LOG_USE_STRUCTURED', '-DG_LOG_DOMAIN="Gnt-TinyURL"'],
dependencies : [libpurple_dep, libfinch_dep, libsoup, glib],
name_prefix : '',
install : true, install_dir : FINCH_PLUGINDIR)
grouping = library('grouping', 'grouping.c',
+ c_args : ['-DG_LOG_USE_STRUCTURED', '-DG_LOG_DOMAIN="Gnt-Grouping"'],
dependencies : [libpurple_dep, libfinch_dep, glib],
name_prefix : '',
install : true, install_dir : FINCH_PLUGINDIR)