summaryrefslogtreecommitdiff
path: root/log.js
diff options
context:
space:
mode:
Diffstat (limited to 'log.js')
-rw-r--r--log.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/log.js b/log.js
new file mode 100644
index 00000000..78b602c3
--- /dev/null
+++ b/log.js
@@ -0,0 +1,5 @@
+const {GLib} =imports.gi;
+
+GLib.log_set_writer_func(GLib.log_writer_default);
+
+GLib.log_structured('Gjs-Console-Test', GLib.LogLevelFlags.LEVEL_MESSAGE, { 'MESSAGE': 'TESTING'}); \ No newline at end of file