esc_logger.gd

Sub-classes

ESCLoggerBase

Constants Descriptions

LOG_DEBUG

const LOG_TRACE: int = 4

Valid log levels

LOG_ERROR

const LOG_TRACE: int = 4

Valid log levels

LOG_FILE_FORMAT

const LOG_FILE_FORMAT: String = "log_%s_%s.log"

Log file format

LOG_INFO

const LOG_TRACE: int = 4

Valid log levels

LOG_TRACE

const LOG_TRACE: int = 4

Valid log levels

LOG_WARNING

const LOG_TRACE: int = 4

Valid log levels

Method Descriptions

formatted_message

func formatted_message(context: String, msg: String, letter: String) -> String

trace

func trace(owner: Object, msg: String)

debug

func debug(owner: Object, msg: String)

Debug log

info

func info(owner: Object, msg: String)

warn

func warn(owner: Object, msg: String)

Warning log

error

func error(owner: Object, msg: String)

Error log

get_log_level

func get_log_level() -> int

ESCLoggerFile

Property Descriptions

log_file

var log_file: File

Log file handler

Method Descriptions

trace

func trace(owner: Object, msg: String)

debug

func debug(owner: Object, msg: String)

Debug log

info

func info(owner: Object, msg: String)

warn

func warn(owner: Object, msg: String)

Warning log

error

func error(owner: Object, msg: String)

Error log

close_logs

func close_logs()

Close the log file cleanly

ESCLoggerVerbose

Method Descriptions

debug

func debug(owner: Object, msg: String)