aboutsummaryrefslogtreecommitdiff
path: root/example.lua
diff options
context:
space:
mode:
authorFederico Angelilli <code@fedang.net>2025-04-13 02:36:18 +0200
committerFederico Angelilli <code@fedang.net>2025-04-13 02:36:18 +0200
commit91149e6c41a094bf29ed6a1aa00c0fa6c1015a24 (patch)
treec501fdaeb09bb1c9f4ea56ff4c5665ea4fa4ceea /example.lua
parent47dfeaa43f263896ad8ce13701f8a65c489f0bb9 (diff)
Add log bindings for lua
Diffstat (limited to 'example.lua')
-rw-r--r--example.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/example.lua b/example.lua
new file mode 100644
index 0000000..46829c2
--- /dev/null
+++ b/example.lua
@@ -0,0 +1,8 @@
+log.info("CRAZY")
+
+function maybe()
+ log.warn("does it work?")
+ return log.panic("it does")
+end
+
+maybe()