AppLog

Table of contents

Logging possibilities of the library

func DebugLog(text string)

Print the text to the debug log

func DebugLogF(format string, a ...any)

Print the text to the debug log

func ErrorLog(text string)

Print the text to the error log

func ErrorLogF(format string, a ...any)

Print the text to the error log

func LastError() string

Returns the last error text

func SetDebugLog(f func(string))

Sets a function for outputting debug info. The default value is nil(debug info is ignored)

func SetErrorLog(f func(string))

Sets a function for outputting error messages. The default value is "log.Println(text)"