GODOT: log message prettyfication

This commit is contained in:
XargonWan 2024-11-29 10:40:42 +09:00
parent c411ffb968
commit 10c4f28e9e

View file

@ -122,16 +122,16 @@ func logger(log_type: String, log_text: String) -> void:
match log_type: match log_type:
'w': 'w':
log_line += "[Warning] " + log_header log_line += " [WANRING] " + log_header
# print("Warning, mate") # print("Warning, mate")
'e': 'e':
log_line += "[Error] " + log_header log_line += " [ERROR] " + log_header
# print("Error, mate") # print("Error, mate")
'i': 'i':
log_line += "[Info] " + log_header log_line += " [INFO] " + log_header
# print("Info, mate") # print("Info, mate")
'd': 'd':
log_line += "[Debug] " + log_header log_line += " [DEBUG] " + log_header
# print("Debug, mate") # print("Debug, mate")
_: _:
log_line += " " + log_header log_line += " " + log_header