Documentation ¶
Index ¶
- func BootErrorf(c core.Context, format string, args ...any)
- func BootInfof(c core.Context, format string, args ...any)
- func BootWarnf(c core.Context, format string, args ...any)
- func CliErrorf(c core.Context, format string, args ...any)
- func CliInfof(c core.Context, format string, args ...any)
- func CliWarnf(c core.Context, format string, args ...any)
- func Debugf(c core.Context, format string, args ...any)
- func Errorf(c core.Context, format string, args ...any)
- func ErrorfWithExtra(c core.Context, extraString string, format string, args ...any)
- func Infof(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(c core.Context, format string, args ...any)
- type LogFormatter
- type RotateFileWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BootErrorf ¶
BootErrorf logs boot error log
func ErrorfWithExtra ¶ added in v0.6.0
ErrorfWithExtra logs error log with custom format and extra info
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.