Documentation ¶
Index ¶
- func BootErrorf(format string, args ...interface{})
- func BootInfof(format string, args ...interface{})
- func BootWarnf(format string, args ...interface{})
- func Debugf(format string, args ...interface{})
- func DebugfWithRequestId(c *core.Context, format string, args ...interface{})
- func Errorf(format string, args ...interface{})
- func ErrorfWithRequestId(c *core.Context, format string, args ...interface{})
- func ErrorfWithRequestIdAndExtra(c *core.Context, extraString string, format string, args ...interface{})
- func Infof(format string, args ...interface{})
- func InfofWithRequestId(c *core.Context, format string, args ...interface{})
- func Requestf(c *core.Context, format string, args ...interface{})
- func SetLoggerConfiguration(config *settings.Config, isDisableBootLog bool) error
- func SqlQuery(args ...interface{})
- func SqlQueryf(format string, args ...interface{})
- func Warnf(format string, args ...interface{})
- func WarnfWithRequestId(c *core.Context, format string, args ...interface{})
- type LogFormatter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BootErrorf ¶
func BootErrorf(format string, args ...interface{})
BootErrorf logs boot error log
func Debugf ¶
func Debugf(format string, args ...interface{})
Debugf logs debug log with custom format
func DebugfWithRequestId ¶
DebugfWithRequestId logs debug log with custom format and request id
func Errorf ¶
func Errorf(format string, args ...interface{})
Errorf logs error log with custom format
func ErrorfWithRequestId ¶
ErrorfWithRequestId logs error log with custom format and request id
func ErrorfWithRequestIdAndExtra ¶
func ErrorfWithRequestIdAndExtra(c *core.Context, extraString string, format string, args ...interface{})
ErrorfWithRequestIdAndExtra logs error log with custom format and request id and extra info
func InfofWithRequestId ¶
InfofWithRequestId logs info log with custom format and request id
func SetLoggerConfiguration ¶
SetLoggerConfiguration sets the logger according to the config
func SqlQueryf ¶
func SqlQueryf(format string, args ...interface{})
SqlQueryf logs sql query log with custom format
func WarnfWithRequestId ¶
WarnfWithRequestId logs warn log with custom format and request id
Types ¶
Click to show internal directories.
Click to hide internal directories.