summaryrefslogtreecommitdiff
path: root/gsystem-log.h
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2013-04-23 16:50:02 -0400
committerColin Walters <walters@verbum.org>2013-04-23 23:00:55 +0100
commit51736db5f49b4b798fd2f9d0ccb8eff453105162 (patch)
tree0b3d31830d0d02e4fef943971ee80bac653c58de /gsystem-log.h
parente5c9386b64658b8d3fa87f820d703f2bd188535e (diff)
downloadlibgsystem-51736db5f49b4b798fd2f9d0ccb8eff453105162.tar.gz
gsystem-log.h: New structured logging API
This is a wrapper for systemd-journal that's introspectable.
Diffstat (limited to 'gsystem-log.h')
-rw-r--r--gsystem-log.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/gsystem-log.h b/gsystem-log.h
new file mode 100644
index 0000000..9f3f9fd
--- /dev/null
+++ b/gsystem-log.h
@@ -0,0 +1,33 @@
+/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*-
+ *
+ * Copyright (C) 2013 Colin Walters <walters@verbum.org>.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __GSYSTEM_LOG_H__
+#define __GSYSTEM_LOG_H__
+
+#include <gio/gio.h>
+
+G_BEGIN_DECLS
+
+void gs_log_structured (const char *message,
+ const char *const *keys);
+
+G_END_DECLS
+
+#endif