summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorHawarth <hawarth@hawarth.com>2026-03-20 18:22:39 +0100
committerHawarth <hawarth@hawarth.com>2026-03-20 18:22:39 +0100
commit9b112d95c52c66d09ae30fd21076ba9f0c2350d1 (patch)
tree23b37d868166ba7cefa018b987cf45c95c4d52cc /scripts
parentd1066311b495a346a2e0b941858f9d60b8c3f011 (diff)
downloaddf-lumberborne-9b112d95c52c66d09ae30fd21076ba9f0c2350d1.tar.gz
df-lumberborne-9b112d95c52c66d09ae30fd21076ba9f0c2350d1.zip
refactor: move logging to its own file
Moves the log function from init.lua to logger.lua and then requires logger.lua in init.lua.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/init.lua2
-rw-r--r--scripts/logger.lua1
2 files changed, 2 insertions, 1 deletions
diff --git a/scripts/init.lua b/scripts/init.lua
index 3eb4b0f..0542860 100644
--- a/scripts/init.lua
+++ b/scripts/init.lua
@@ -1 +1 @@
-log("Hello from Lumberborne!")
+require("logger")
diff --git a/scripts/logger.lua b/scripts/logger.lua
new file mode 100644
index 0000000..3eb4b0f
--- /dev/null
+++ b/scripts/logger.lua
@@ -0,0 +1 @@
+log("Hello from Lumberborne!")