summaryrefslogtreecommitdiff
path: root/log.js
diff options
context:
space:
mode:
authorEvan Welsh <contact@evanwelsh.com>2021-08-06 22:27:14 -0700
committerEvan Welsh <contact@evanwelsh.com>2021-08-06 22:27:14 -0700
commit8c585c9706b19c213682af9319789642cdcb15c6 (patch)
tree279c195012b63f744a01cb71f5b5f0809c0589f2 /log.js
parent469b38f367ed9707f2c17a1bdeb810d9c193e462 (diff)
downloadgjs-ewlsh/fix-function-pointers.tar.gz
Some really rough work on fixing function pointer supportewlsh/fix-function-pointers
Not sure if we should go this route or wrap in a callback, I'd prefer if we can go this route to avoid adding JS wrapping
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