Documentation ¶
Index ¶
- type Logger
- func (l *Logger) Error(args ...interface{})
- func (l *Logger) Errorf(format string, args ...interface{})
- func (l *Logger) Fatal(args ...interface{})
- func (l *Logger) Fatalf(format string, args ...interface{})
- func (l *Logger) Print(args ...interface{})
- func (l *Logger) Printf(format string, args ...interface{})
- func (l *Logger) RequestLog(r *http.Request)
- func (l *Logger) ResponseLog(r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger describes logger structure
func NewNullLogger ¶
func NewNullLogger() *Logger
NewNullLogger return logger that do not write anywhere
func (*Logger) Error ¶
func (l *Logger) Error(args ...interface{})
Error prints ERROR level message and exists
func (*Logger) Fatal ¶
func (l *Logger) Fatal(args ...interface{})
Fatal prints FATAL level message and exists
func (*Logger) ResponseLog ¶
ResponseLog log responses
Click to show internal directories.
Click to hide internal directories.