Add and use new logger

This helps provider better logs.  With this, the user can now run
with `-v` for verbose logs, use more `-v` to be more verbose,
eg `calls -vvvvv` log shall be very verbose
This commit is contained in:
Mohammed Sadiq
2021-08-11 09:38:19 +00:00
committed by Evangelos Ribeiro Tzaras
parent d9ec4c17a2
commit 8af2563859
5 changed files with 342 additions and 1 deletions
+3
View File
@@ -26,6 +26,7 @@
#include <gtk/gtk.h>
#include "calls-application.h"
#include "calls-log.h"
#include "config.h"
int
@@ -39,6 +40,8 @@ main (int argc,
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
calls_log_init ();
app = G_APPLICATION (calls_application_new ());
status = g_application_run (app, argc, argv);
g_object_unref (app);