talkatu/talkatu

Use structured logging, and add a log domain

2021-10-18, Elliott Sales de Andrade
8e74fa56576c
Parents 803afd860d6f
Children 5bb988234c35
Use structured logging, and add a log domain

Testing Done:
Compiled and ran, though the only logging appears to be switching buffer types in the demo.

Reviewed at https://reviews.imfreedom.org/r/1059/
--- a/demo/meson.build Thu Oct 14 20:25:41 2021 -0500
+++ b/demo/meson.build Mon Oct 18 01:44:07 2021 -0500
@@ -23,6 +23,7 @@
talkatudemo = executable('talkatu-demo',
sources,
talkatudemo_resources,
+ c_args : ['-DG_LOG_USE_STRUCTURED', '-DG_LOG_DOMAIN="Talkatu-Demo"'],
dependencies: [GLIB, GTK3, talkatu_dep],
include_directories : top_srcdir,
install: get_option('install-demo'),
--- a/talkatu/meson.build Thu Oct 14 20:25:41 2021 -0500
+++ b/talkatu/meson.build Mon Oct 18 01:44:07 2021 -0500
@@ -187,7 +187,7 @@
talkatuversion_h,
talkatu_h,
talkatu_resources,
- c_args : ['-DTALKATU_COMPILATION', '-DG_LOG_DOMAIN="Talkatu"'],
+ c_args : ['-DTALKATU_COMPILATION', '-DG_LOG_USE_STRUCTURED', '-DG_LOG_DOMAIN="Talkatu"'],
include_directories : toplevel_inc,
dependencies : [CMARK, GLIB, GOBJECT, GUMBO, GTK3, GSPELL],
version : TALKATU_LIBRARY_VERSION,