From 9550f690dc4c9932d67366cf08b7e1c29d529d24 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sat, 13 Apr 2024 23:25:47 +0200 Subject: [PATCH] Create `Log`, with logging utilities --- log.gd | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 log.gd diff --git a/log.gd b/log.gd new file mode 100644 index 0000000..747d422 --- /dev/null +++ b/log.gd @@ -0,0 +1,10 @@ +class_name Log + +## Logging utilities + + +## Print to standard output. +## +## Pass self to the first parameter. +static func p(obj: Node, message: String) -> void: + print("[%s] %s" % [obj, message])