Documentation
¶
Index ¶
- func BootErrorf(format string, args ...any)
- func BootInfof(format string, args ...any)
- func BootWarnf(format string, args ...any)
- func Debugf(format string, args ...any)
- func DebugfWithRequestId(c *core.Context, format string, args ...any)
- func Errorf(format string, args ...any)
- func ErrorfWithRequestId(c *core.Context, format string, args ...any)
- func ErrorfWithRequestIdAndExtra(c *core.Context, extraString string, format string, args ...any)
- func Infof(format string, args ...any)
- func InfofWithRequestId(c *core.Context, format string, args ...any)
- func Requestf(c *core.Context, format string, args ...any)
- func SetLoggerConfiguration(config *settings.Config, isDisableBootLog bool) error
- func SqlQuery(args ...any)
- func SqlQueryf(format string, args ...any)
- func Warnf(format string, args ...any)
- func WarnfWithRequestId(c *core.Context, format string, args ...any)
- type LogFormatter
- type RotateFileWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DebugfWithRequestId ¶
DebugfWithRequestId logs debug log with custom format and request id
func ErrorfWithRequestId ¶
ErrorfWithRequestId logs error log with custom format and request id
func ErrorfWithRequestIdAndExtra ¶
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
Types ¶
type LogFormatter ¶
LogFormatter represents a log formatter
type RotateFileWriter ¶ added in v0.5.0
type RotateFileWriter struct {
EnableRotate bool
MaxFileSize int64
MaxFileDays uint32
// contains filtered or unexported fields
}
func NewRotateFileWriter ¶ added in v0.5.0
func NewRotateFileWriter(filePath string, enableRotate bool, maxFileSize int64, maxFileDays uint32) (*RotateFileWriter, error)
NewRotateFileWriter returns a new rotate file writer
Click to show internal directories.
Click to hide internal directories.