Documentation ¶
Index ¶
- func HTTPLogger(l Logger) echo.MiddlewareFunc
- type Logger
- type NilLogger
- type OrmLogger
- func (l *OrmLogger) Debug(v ...interface{})
- func (l *OrmLogger) Debugf(format string, v ...interface{})
- func (l *OrmLogger) Error(v ...interface{})
- func (l *OrmLogger) Errorf(format string, v ...interface{})
- func (l *OrmLogger) Info(v ...interface{})
- func (l *OrmLogger) Infof(format string, v ...interface{})
- func (l *OrmLogger) IsShowSQL() bool
- func (l *OrmLogger) Level() core.LogLevel
- func (l *OrmLogger) SetLevel(core.LogLevel)
- func (l *OrmLogger) ShowSQL(...bool)
- func (l *OrmLogger) Warn(v ...interface{})
- func (l *OrmLogger) Warnf(format string, v ...interface{})
- type StdLogger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HTTPLogger ¶
func HTTPLogger(l Logger) echo.MiddlewareFunc
HTTPLogger returns a middleware that logs HTTP requests.
Types ¶
type Logger ¶
type Logger interface { Info(values ...interface{}) // used to log "info" messages Error(values ...interface{}) // used to log "error" messages Warn(values ...interface{}) // used to log "warning" messages Close() }
Logger is an interface for logging
type NilLogger ¶
type NilLogger struct { }
NilLogger logs nothing
func (*NilLogger) Error ¶
func (l *NilLogger) Error(values ...interface{})
Error do nothing, just match the interface
type OrmLogger ¶
type OrmLogger struct {
// contains filtered or unexported fields
}
OrmLogger is implementation of xorm core.ILogger with proxy logger
func NewOrmLogger ¶
NewOrmLogger is logger constructor
type StdLogger ¶
type StdLogger struct {
// contains filtered or unexported fields
}
StdLogger logs to Stdout
func NewStdLogger ¶
NewStdLogger is StdLogger constructor
func (*StdLogger) Error ¶
func (l *StdLogger) Error(values ...interface{})
Error logs "error" messages. First value should be Event string
Click to show internal directories.
Click to hide internal directories.