Documentation ¶
Index ¶
- type Discard
- type Logger
- type Option
- type Std
- func (sf Std) DPanicf(format string, args ...interface{})
- func (sf Std) Debugf(format string, args ...interface{})
- func (sf Std) Errorf(format string, args ...interface{})
- func (sf Std) Fatalf(format string, args ...interface{})
- func (sf Std) Infof(format string, args ...interface{})
- func (sf *Std) Mode(enable bool)
- func (sf Std) Warnf(format string, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Discard ¶
type Discard struct{}
Discard is an logger on which all Write calls succeed without doing anything.
func NewDiscard ¶
func NewDiscard() Discard
NewDiscard a discard logger on which always succeed without doing anything
type Logger ¶
type Logger interface { Debugf(format string, arg ...interface{}) Infof(format string, arg ...interface{}) Warnf(format string, arg ...interface{}) Errorf(format string, arg ...interface{}) DPanicf(format string, arg ...interface{}) Fatalf(format string, arg ...interface{}) }
Logger log interface
type Std ¶
Std 标准输出, os.Stdout, os.Stderr, os.Stdin, ioutil.Discard
Click to show internal directories.
Click to hide internal directories.