Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DebugFunc logs a message as debug. // Set to nil if you want debug logs are ignored. DebugFunc = func(format string, v ...any) { format = "[DEBUG] vex: " + format stdlog.Printf(format, v...) } // InfoFunc logs a message as info. // Set to nil if you want info logs are ignored. InfoFunc = func(format string, v ...any) { format = "[INFO] vex: " + format stdlog.Printf(format, v...) } // ErrorFunc logs a message as error. // Set to nil if you want error logs are ignored. ErrorFunc = func(err error, format string, v ...any) { format = "[ERROR] vex: " + format + ": %+v" stdlog.Printf(format, append(v, err)...) } )
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.