Documentation ¶
Index ¶
- func Debug(msg string, vals ...interface{})
- func Error(msg string, vals ...interface{})
- func ErrorE(msg string, vals ...interface{}) error
- func Fatal(msg string, vals ...interface{})
- func HasDebugLogger() bool
- func HasErrLogger() bool
- func HasSQLLogger() bool
- func SQL(msg string, vals ...interface{})
- type LogFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Debug ¶
func Debug(msg string, vals ...interface{})
Debug logs to the debugLogFn if it is set. Noop default.
func Error ¶
func Error(msg string, vals ...interface{})
Error logs to the errLogFn if it is set. stdlib log.Printf default.
func Fatal ¶
func Fatal(msg string, vals ...interface{})
Fatal is a temporary helper to replace logger.Fatal from logxi
func HasDebugLogger ¶
func HasDebugLogger() bool
HasDebugLogger is a way to check for a noop on debug logging and pre-empt an expensive formatting call.
func HasErrLogger ¶
func HasErrLogger() bool
HasErrLogger is a way to check for a noop on error logging and pre-empt an expensive formatting call.
func HasSQLLogger ¶
func HasSQLLogger() bool
HasSQLLogger is a way to check for a noop on sql logging and pre-empt an expensive formatting call.
Types ¶
Click to show internal directories.
Click to hide internal directories.