[gnome-builder] log: allow setting verbosity directly
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] log: allow setting verbosity directly
- Date: Wed, 13 Jan 2016 20:06:49 +0000 (UTC)
commit cca2e878490c5a9acca419712d09d45c16e2863b
Author: Christian Hergert <chergert redhat com>
Date: Wed Jan 13 12:04:56 2016 -0800
log: allow setting verbosity directly
libide/ide-log.c | 6 ++++++
libide/ide-log.h | 1 +
2 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/libide/ide-log.c b/libide/ide-log.c
index 4387d4e..a7419ba 100644
--- a/libide/ide-log.c
+++ b/libide/ide-log.c
@@ -273,3 +273,9 @@ ide_log_get_verbosity (void)
{
return log_verbosity;
}
+
+void
+ide_log_set_verbosity (gint level)
+{
+ log_verbosity = level;
+}
diff --git a/libide/ide-log.h b/libide/ide-log.h
index f2335dc..389078f 100644
--- a/libide/ide-log.h
+++ b/libide/ide-log.h
@@ -27,6 +27,7 @@ void ide_log_init (gboolean stdout_,
const gchar *filename);
void ide_log_increase_verbosity (void);
gint ide_log_get_verbosity (void);
+void ide_log_set_verbosity (gint level);
void ide_log_shutdown (void);
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]