Documentation ¶
Index ¶
- func NewLogrusLogger() log.Logger
- func NewLogrusLogger2(logger *logrus.Logger) log.Logger
- func NewLogrusLogger3(logger *logrus.Logger, level log.LogLevel) log.Logger
- type LogrusLogger
- func (ll *LogrusLogger) Debug(v ...interface{})
- func (ll *LogrusLogger) Debugf(format string, v ...interface{})
- func (ll *LogrusLogger) Error(v ...interface{})
- func (ll *LogrusLogger) Errorf(format string, v ...interface{})
- func (ll *LogrusLogger) Info(v ...interface{})
- func (ll *LogrusLogger) Infof(format string, v ...interface{})
- func (ll *LogrusLogger) IsShowSQL() bool
- func (ll *LogrusLogger) Level() log.LogLevel
- func (ll *LogrusLogger) SetLevel(l log.LogLevel)
- func (ll *LogrusLogger) ShowSQL(show ...bool)
- func (ll *LogrusLogger) Warn(v ...interface{})
- func (ll *LogrusLogger) Warnf(format string, v ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLogrusLogger ¶
Types ¶
type LogrusLogger ¶
type LogrusLogger struct {
// contains filtered or unexported fields
}
LogrusLogger is the logrus implement of ILogger
func (*LogrusLogger) Debug ¶
func (ll *LogrusLogger) Debug(v ...interface{})
func (*LogrusLogger) Debugf ¶
func (ll *LogrusLogger) Debugf(format string, v ...interface{})
func (*LogrusLogger) Error ¶
func (ll *LogrusLogger) Error(v ...interface{})
func (*LogrusLogger) Errorf ¶
func (ll *LogrusLogger) Errorf(format string, v ...interface{})
func (*LogrusLogger) Info ¶
func (ll *LogrusLogger) Info(v ...interface{})
func (*LogrusLogger) Infof ¶
func (ll *LogrusLogger) Infof(format string, v ...interface{})
func (*LogrusLogger) IsShowSQL ¶
func (ll *LogrusLogger) IsShowSQL() bool
func (*LogrusLogger) Level ¶
func (ll *LogrusLogger) Level() log.LogLevel
func (*LogrusLogger) SetLevel ¶
func (ll *LogrusLogger) SetLevel(l log.LogLevel)
func (*LogrusLogger) ShowSQL ¶
func (ll *LogrusLogger) ShowSQL(show ...bool)
func (*LogrusLogger) Warn ¶
func (ll *LogrusLogger) Warn(v ...interface{})
func (*LogrusLogger) Warnf ¶
func (ll *LogrusLogger) Warnf(format string, v ...interface{})
Click to show internal directories.
Click to hide internal directories.