Documentation
¶
Index ¶
- func Debug(args ...interface{})
- func Error(args ...interface{})
- func Fatal(args ...interface{})
- func Info(args ...interface{})
- func NewDefaultGormLogger() logger.Interface
- func NewGormLogger(config Config) logger.Interface
- func Trace(args ...interface{})
- func Warn(args ...interface{})
- func WithSkipGorm(flag bool) func(*FileWithLineNumOptions)
- func WithSkipHelper(flag bool) func(*FileWithLineNumOptions)
- type Config
- type FileWithLineNumOptions
- type Interface
- type Level
- type Options
- type Wrapper
- func (w *Wrapper) Debug(args ...interface{})
- func (w *Wrapper) Error(args ...interface{})
- func (w *Wrapper) Fatal(args ...interface{})
- func (w *Wrapper) Info(args ...interface{})
- func (w *Wrapper) Trace(args ...interface{})
- func (w *Wrapper) Warn(args ...interface{})
- func (w *Wrapper) WithContext(ctx context.Context) *Wrapper
- func (w *Wrapper) WithError(err error) *Wrapper
- func (w *Wrapper) WithFields(fields map[string]interface{}) *Wrapper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDefaultGormLogger ¶
func NewGormLogger ¶
func WithSkipGorm ¶
func WithSkipGorm(flag bool) func(*FileWithLineNumOptions)
func WithSkipHelper ¶
func WithSkipHelper(flag bool) func(*FileWithLineNumOptions)
Types ¶
type FileWithLineNumOptions ¶
type FileWithLineNumOptions struct {
// contains filtered or unexported fields
}
type Interface ¶
type Interface interface { Options() Options WithFields(fields map[string]interface{}) Interface Log(level Level, v ...interface{}) Logf(level Level, format string, v ...interface{}) }
Interface logger interface
type Wrapper ¶
type Wrapper struct {
// contains filtered or unexported fields
}
var DefaultWrapper *Wrapper
func NewWrapper ¶
func WithContext ¶
func WithFields ¶
func (*Wrapper) WithFields ¶
Click to show internal directories.
Click to hide internal directories.