1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
log.info("CRAZY")
function maybe()
log.warn("does it work?")
return log.error("it does")
end
log.info("%d sus", 10000)
maybe()
log.info("%d BIGGER %f?", 0-1, 0/0)
log.format("info", "sus %d", 10)
local co = coroutine.create(function()
print("Coroutine running")
end)
print(type(debug.getinfo(maybe)))
log.value_info("hello this", {
is = "wow",
structured = "logging",
"noname",
10,
crazy = {
what = "is",
going = "on",
},
what = log.format,
-- file = io.open("example.txt", "w"),
extra = co,
info = debug.getinfo(maybe),
})
-- errors
log.value_info("help")
log.value_info("help", 10)
log.format("lmao", "sus %d", 10)
log.warn("%u %d","a")
|