pandemonium_demo_projects/3d/physics_tests/utils/system_log.gd

21 lines
298 B
GDScript

extends Node
enum LogType {
LOG,
ERROR,
}
signal entry_logged(message, type)
func print_log(message):
print(message)
emit_signal("entry_logged", message, LogType.LOG)
func print_error(message):
push_error(message)
printerr(message)
emit_signal("entry_logged", message, LogType.ERROR)