Documentation
¶
Index ¶
- type ZormLogger
- func (s *ZormLogger) Debug(v ...interface{})
- func (s *ZormLogger) Debugf(format string, v ...interface{})
- func (s *ZormLogger) Error(v ...interface{})
- func (s *ZormLogger) Errorf(format string, v ...interface{})
- func (s *ZormLogger) Info(v ...interface{})
- func (s *ZormLogger) Infof(format string, v ...interface{})
- func (s *ZormLogger) IsShowSQL() bool
- func (s *ZormLogger) Level() xormlog.LogLevel
- func (s *ZormLogger) SetLevel(l xormlog.LogLevel)
- func (s *ZormLogger) ShowSQL(show ...bool)
- func (s *ZormLogger) Warn(v ...interface{})
- func (s *ZormLogger) Warnf(format string, v ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ZormLogger ¶
type ZormLogger struct {
// contains filtered or unexported fields
}
ZormLogger is the default implment of ILogger
func NewLogger ¶
func NewLogger(l interface{}, name string, showSQL bool) *ZormLogger
func (*ZormLogger) Debugf ¶
func (s *ZormLogger) Debugf(format string, v ...interface{})
Debugf implement ILogger
func (*ZormLogger) Errorf ¶
func (s *ZormLogger) Errorf(format string, v ...interface{})
Errorf implement ILogger
func (*ZormLogger) Infof ¶
func (s *ZormLogger) Infof(format string, v ...interface{})
Infof implement ILogger
func (*ZormLogger) SetLevel ¶
func (s *ZormLogger) SetLevel(l xormlog.LogLevel)
SetLevel implement ILogger
func (*ZormLogger) Warnf ¶
func (s *ZormLogger) Warnf(format string, v ...interface{})
Warnf implement ILogger
Click to show internal directories.
Click to hide internal directories.