Switch to using GLib structured logging

This converts the logging infrastructure to using structured logging
calls, adds and sets a structured logging writer.
This commit is contained in:
Michael Gratton 2018-12-29 12:57:01 +11:00 committed by Michael James Gratton
parent de8c3858e9
commit b0ca8c9e0a
6 changed files with 232 additions and 22 deletions

View file

@ -36,7 +36,7 @@ int main(string[] args) {
Geary.HTML.init();
Geary.Logging.init();
Geary.Logging.log_to(stderr);
GLib.Log.set_default_handler(Geary.Logging.default_handler);
GLib.Log.set_writer_func(Geary.Logging.default_log_writer);
Integration.Configuration config = load_config(args);