log: Reimplement logging and debugging
This commit replaces the old rudimentary log handler by a shinier version of it. It also introduces the debugging macros that I usually add to the apps, including the CC_TRACE_MSG() macro for tracing.
This commit is contained in:
parent
85296f1eba
commit
1187f147af
9 changed files with 386 additions and 97 deletions
|
@ -26,9 +26,9 @@
|
|||
#include <gio/gio.h>
|
||||
|
||||
#include "cc-application.h"
|
||||
#include "cc-log.h"
|
||||
#include "cc-object-storage.h"
|
||||
#include "cc-panel-loader.h"
|
||||
#include "cc-shell-log.h"
|
||||
#include "cc-window.h"
|
||||
|
||||
#if defined(HAVE_WACOM) || defined(HAVE_CHEESE)
|
||||
|
@ -158,7 +158,9 @@ cc_application_command_line (GApplication *application,
|
|||
options = g_application_command_line_get_options_dict (command_line);
|
||||
|
||||
debug = g_variant_dict_contains (options, "verbose");
|
||||
cc_shell_log_set_debug (debug);
|
||||
|
||||
if (debug)
|
||||
cc_log_init ();
|
||||
|
||||
gtk_window_present (GTK_WINDOW (self->window));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue