53 lines
715 B
GDScript3
53 lines
715 B
GDScript3
|
"""
|
||
|
Class: Appender
|
||
|
Responsible for Delivering a Log Event to its Destination.
|
||
|
"""
|
||
|
|
||
|
extends Reference
|
||
|
class_name Appender
|
||
|
|
||
|
var layout: Layout = PatternLayout.new()
|
||
|
var logger_level: int = 999 setget _set_logger_level
|
||
|
var logger_format: int = 030
|
||
|
|
||
|
var name = "appender"
|
||
|
var is_open = false
|
||
|
|
||
|
|
||
|
func _set_logger_level(level: int):
|
||
|
logger_level = level
|
||
|
|
||
|
|
||
|
"""
|
||
|
Function: start
|
||
|
Start this Appender
|
||
|
"""
|
||
|
func start():
|
||
|
pass
|
||
|
|
||
|
"""
|
||
|
Function: stop
|
||
|
Stop this Appender
|
||
|
"""
|
||
|
func stop():
|
||
|
pass
|
||
|
|
||
|
"""
|
||
|
Function: append
|
||
|
Logs an Event in whatever logic this Appender has
|
||
|
"""
|
||
|
func append(message: Message):
|
||
|
pass
|
||
|
|
||
|
|
||
|
"""
|
||
|
Function: append_raw
|
||
|
Send Raw Text to the Appender
|
||
|
"""
|
||
|
func append_raw(text: String):
|
||
|
pass
|
||
|
|
||
|
|
||
|
func _init():
|
||
|
pass
|