Documentation ¶
Index ¶
- type Format
- type Hook
- type LevelHooks
- type LogLevel
- type Logger
- type Options
- type TerminalFormatter
- type XormLogger
- func (xl *XormLogger) Debug(v ...interface{})
- func (xl *XormLogger) Debugf(format string, v ...interface{})
- func (xl *XormLogger) Error(v ...interface{})
- func (xl *XormLogger) Errorf(format string, v ...interface{})
- func (xl *XormLogger) Info(v ...interface{})
- func (xl *XormLogger) Infof(format string, v ...interface{})
- func (xl *XormLogger) IsShowSQL() bool
- func (xl *XormLogger) Level() core.LogLevel
- func (xl *XormLogger) SetLevel(l core.LogLevel)
- func (xl *XormLogger) ShowSQL(show ...bool)
- func (xl *XormLogger) Warn(v ...interface{})
- func (xl *XormLogger) Warnf(format string, v ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LevelHooks ¶
func (LevelHooks) Add ¶
func (hooks LevelHooks) Add(hook Hook)
type Logger ¶
type Logger interface { SetLogLevel(level LogLevel) GetLogLevel() LogLevel SetLogFormatter(formatter TerminalFormatter) Info(msg string, fields ...interface{}) Debug(msg string, fields ...interface{}) Warn(err error) Error(err error) Infof(format string, args ...interface{}) Debugf(format string, args ...interface{}) Errorf(format string, args ...interface{}) Warnf(format string, args ...interface{}) AddHook(hook Hook) DatabaseLogger() gormlogger.Interface XormLogger() core.ILogger }
type TerminalFormatter ¶ added in v0.4.14
type XormLogger ¶ added in v0.4.25
type XormLogger struct {
// contains filtered or unexported fields
}
func (*XormLogger) Debug ¶ added in v0.4.25
func (xl *XormLogger) Debug(v ...interface{})
Debug implements core.ILogger.
func (*XormLogger) Debugf ¶ added in v0.4.25
func (xl *XormLogger) Debugf(format string, v ...interface{})
func (*XormLogger) Error ¶ added in v0.4.25
func (xl *XormLogger) Error(v ...interface{})
Error implements core.ILogger.
func (*XormLogger) Errorf ¶ added in v0.4.25
func (xl *XormLogger) Errorf(format string, v ...interface{})
func (*XormLogger) Info ¶ added in v0.4.25
func (xl *XormLogger) Info(v ...interface{})
Info implements core.ILogger.
func (*XormLogger) Infof ¶ added in v0.4.25
func (xl *XormLogger) Infof(format string, v ...interface{})
func (*XormLogger) IsShowSQL ¶ added in v0.4.25
func (xl *XormLogger) IsShowSQL() bool
IsShowSQL implements core.ILogger.
func (*XormLogger) Level ¶ added in v0.4.25
func (xl *XormLogger) Level() core.LogLevel
Level returns the logger level
func (*XormLogger) SetLevel ¶ added in v0.4.25
func (xl *XormLogger) SetLevel(l core.LogLevel)
SetLevel sets the logger level
func (*XormLogger) ShowSQL ¶ added in v0.4.25
func (xl *XormLogger) ShowSQL(show ...bool)
ShowSQL sets whether SQL should be shown or not
func (*XormLogger) Warn ¶ added in v0.4.25
func (xl *XormLogger) Warn(v ...interface{})
Warn implements core.ILogger.
func (*XormLogger) Warnf ¶ added in v0.4.25
func (xl *XormLogger) Warnf(format string, v ...interface{})
Click to show internal directories.
Click to hide internal directories.