aboutsummaryrefslogtreecommitdiff
path: root/examples/log/log.tm
diff options
context:
space:
mode:
Diffstat (limited to 'examples/log/log.tm')
-rw-r--r--examples/log/log.tm16
1 files changed, 8 insertions, 8 deletions
diff --git a/examples/log/log.tm b/examples/log/log.tm
index 9c3396e7..4b7893fd 100644
--- a/examples/log/log.tm
+++ b/examples/log/log.tm
@@ -16,24 +16,24 @@ func _timestamp(->Text)
return c_str.as_text()
func info(text:Text, newline=yes)
- say("$\[2]⚫ $text$\[]", newline)
+ say("\[2]⚫ $text\[]", newline)
for file in logfiles
- file.append("$(_timestamp()) [info] $text$\n")
+ file.append("$(_timestamp()) [info] $text\n")
func debug(text:Text, newline=yes)
- say("$\[32]🟢 $text$\[]", newline)
+ say("\[32]🟢 $text\[]", newline)
for file in logfiles
- file.append("$(_timestamp()) [debug] $text$\n")
+ file.append("$(_timestamp()) [debug] $text\n")
func warn(text:Text, newline=yes)
- say("$\[33;1]🟡 $text$\[]", newline)
+ say("\[33;1]🟡 $text\[]", newline)
for file in logfiles
- file.append("$(_timestamp()) [warn] $text$\n")
+ file.append("$(_timestamp()) [warn] $text\n")
func error(text:Text, newline=yes)
- say("$\[31;1]🔴 $text$\[]", newline)
+ say("\[31;1]🔴 $text\[]", newline)
for file in logfiles
- file.append("$(_timestamp()) [error] $text$\n")
+ file.append("$(_timestamp()) [error] $text\n")
func add_logfile(file:Path)
logfiles.add(file)