Added extra logging symbols.
h3rald h3rald@h3rald.com
Wed, 30 Dec 2020 15:33:50 +0000
1 files changed,
25 insertions(+),
0 deletions(-)
jump to
M
lib/min_io.nim
→
lib/min_io.nim
@@ -71,6 +71,31 @@ def.symbol("fatal") do (i: In):
let a = i.peek fatal $$a quit(100) + + def.symbol("notice!") do (i: In): + let a = i.pop + notice $$a + + def.symbol("info!") do (i: In): + let a = i.pop + info $$a + + def.symbol("error!") do (i: In): + let a = i.pop + error $$a + + def.symbol("warn!") do (i: In): + let a = i.pop + warn $$a + + def.symbol("debug!") do (i: In): + let a = i.pop + debug $$a + + def.symbol("fatal!") do (i: In): + let a = i.pop + fatal $$a + quit(100) def.symbol("column-print") do (i: In): let vals = i.expect("int", "quot")