Documentation ¶
Index ¶
- Constants
- func Debug(format string, v ...interface{})
- func Debugf(format string, v ...interface{})
- func Error(format string, v ...interface{})
- func Errorf(format string, v ...interface{})
- func Flush()
- func Info(format string, v ...interface{})
- func Infof(format string, v ...interface{})
- func SetLevel(level int)
- func SetLogger(logger Logger)
- func Warn(format string, v ...interface{})
- func Warnf(format string, v ...interface{})
- type Logger
- type StdLogger
- func (stdLogger *StdLogger) Debugf(format string, v ...interface{})
- func (stdLogger *StdLogger) Err() string
- func (stdLogger *StdLogger) Errorf(format string, v ...interface{})
- func (stdLogger *StdLogger) Flush()
- func (stdLogger *StdLogger) FlushErr()
- func (stdLogger *StdLogger) FlushOut()
- func (stdLogger *StdLogger) Infof(format string, v ...interface{})
- func (stdLogger *StdLogger) Out() []byte
- func (stdLogger *StdLogger) OutLines() []string
- func (stdLogger *StdLogger) SetLevel(level int) error
- func (stdLogger *StdLogger) Warn() string
- func (stdLogger *StdLogger) Warnf(format string, v ...interface{})
Constants ¶
View Source
const ( LevelDebug = 1 + iota LevelInfo LevelWarn LevelError )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Logger ¶
type Logger interface { Debugf(format string, v ...interface{}) Infof(format string, v ...interface{}) Warnf(format string, v ...interface{}) Errorf(format string, v ...interface{}) Flush() SetLevel(level int) error }
TODO: merge with hertz logger package
type StdLogger ¶
func NewStdLogger ¶
Click to show internal directories.
Click to hide internal directories.