2024-04-13 21:25:47 +00:00
|
|
|
class_name Log
|
|
|
|
|
|
|
|
## Logging utilities
|
|
|
|
|
|
|
|
|
2024-04-13 22:03:11 +00:00
|
|
|
## Print to standard output in cyan.
|
2024-04-13 21:25:47 +00:00
|
|
|
##
|
|
|
|
## Pass self to the first parameter.
|
|
|
|
static func p(obj: Node, message: String) -> void:
|
2024-04-13 22:03:11 +00:00
|
|
|
print_rich("[color=cyan]{%s} %s[/color]" % [obj, message])
|
|
|
|
|
|
|
|
|
|
|
|
## Print to standard output in yellow.
|
|
|
|
##
|
|
|
|
## Pass self to the first parameter.
|
|
|
|
static func w(obj: Node, message: String) -> void:
|
|
|
|
print_rich("[color=yellow]{%s} %s[/color]" % [obj, message])
|
|
|
|
|
|
|
|
|
|
|
|
## Print to standard output in red.
|
|
|
|
##
|
|
|
|
## Pass self to the first parameter.
|
|
|
|
static func e(obj: Node, message: String) -> void:
|
|
|
|
print_rich("[color=red]{%s} %s[/color]" % [obj, message])
|