libgnt/libgnt

Enable structured logging

2021-10-18, Elliott Sales de Andrade
eed074767fad
Parents 90dfa93808ad
Children 86d548109b38
Enable structured logging

Testing Done:
Compile only.

Reviewed at https://reviews.imfreedom.org/r/1060/
--- a/meson.build Mon Oct 11 21:04:43 2021 -0500
+++ b/meson.build Mon Oct 18 02:00:51 2021 -0500
@@ -262,17 +262,23 @@
endif
libgnt_inc = include_directories('.')
-libgnt = library('gnt',
- libgnt_SOURCES,
- libgnt_headers,
- gnt_h,
- gntncurses_h,
- c_args : ['-DGNT_COMPILATION', '-DG_LOG_DOMAIN="Gnt"'],
- install : true,
- version : '@0@.@1@.@2@'.format(gnt_soversion,
- gnt_minor_version,
- gnt_micro_version),
- dependencies : [ncurses, libxml, glib, gobject, gmodule, python_dep])
+libgnt = library(
+ 'gnt',
+ libgnt_SOURCES,
+ libgnt_headers,
+ gnt_h,
+ gntncurses_h,
+ c_args : [
+ '-DGNT_COMPILATION',
+ '-DG_LOG_USE_STRUCTURED',
+ '-DG_LOG_DOMAIN="Gnt"',
+ ],
+ install : true,
+ version : '@0@.@1@.@2@'.format(
+ gnt_soversion,
+ gnt_minor_version,
+ gnt_micro_version),
+ dependencies : [ncurses, libxml, glib, gobject, gmodule, python_dep])
pkgconfig.generate(
libgnt,
--- a/wms/meson.build Mon Oct 11 21:04:43 2021 -0500
+++ b/wms/meson.build Mon Oct 18 02:00:51 2021 -0500
@@ -1,11 +1,13 @@
plugindir = get_option('libdir') / 'gnt3'
irssi = library('irssi', 'irssi.c',
+ c_args : ['-DG_LOG_USE_STRUCTURED', '-DG_LOG_DOMAIN="Gnt-IRSSI"'],
dependencies : [ncurses, gobject, libgnt_dep],
name_prefix : '',
install : true, install_dir : plugindir)
s = library('s', 's.c',
+ c_args : ['-DG_LOG_USE_STRUCTURED', '-DG_LOG_DOMAIN="Gnt-S"'],
dependencies : [ncurses, gobject, libgnt_dep],
name_prefix : '',
install : true, install_dir : plugindir)