35 lines
662 B
GDScript3
35 lines
662 B
GDScript3
|
const LOG_CATEGORY = "TOOLT"
|
||
|
const NAME = "Logger"
|
||
|
|
||
|
|
||
|
func send_log(parent):
|
||
|
parent.info("Test Log!", {
|
||
|
"image": "res://components/Toolbar/hammer.svg",
|
||
|
"color": "#818181",
|
||
|
"category": "TST"
|
||
|
})
|
||
|
|
||
|
|
||
|
func send_debug(parent):
|
||
|
parent.debug("Test Debug!", {
|
||
|
"image": "res://components/Toolbar/hammer.svg",
|
||
|
"color": "#818181",
|
||
|
"category": "TST"
|
||
|
})
|
||
|
|
||
|
|
||
|
func send_warning(parent):
|
||
|
parent.warn("Test Warn!", {
|
||
|
"image": "res://components/Toolbar/hammer.svg",
|
||
|
"color": "#818181",
|
||
|
"category": "TST"
|
||
|
})
|
||
|
|
||
|
|
||
|
func send_error(parent):
|
||
|
parent.error("Test Error!", {
|
||
|
"image": "res://components/Toolbar/hammer.svg",
|
||
|
"color": "#818181",
|
||
|
"category": "TST"
|
||
|
})
|