Documentation
¶
Overview ¶
Package waterlog provides an extended and styled log.Logger functionality.
Index ¶
- func Debug(v ...interface{})
- func Debugf(f string, v ...interface{})
- func Debugln(v ...interface{})
- func Error(v ...interface{})
- func Errorf(f string, v ...interface{})
- func Errorln(v ...interface{})
- func Fatal(v ...interface{})
- func Fatalf(f string, v ...interface{})
- func Fatalln(v ...interface{})
- func Flags() int
- func Good(v ...interface{})
- func Goodf(f string, v ...interface{})
- func Goodln(v ...interface{})
- func Info(v ...interface{})
- func Infof(f string, v ...interface{})
- func Infoln(v ...interface{})
- func Level() uint8
- func Panic(v ...interface{})
- func Panicf(f string, v ...interface{})
- func Panicln(v ...interface{})
- func Print(v ...interface{})
- func Printf(f string, v ...interface{})
- func Println(v ...interface{})
- func SetFlags(flag int)
- func SetFormat(format format.Func)
- func SetLevel(level uint8)
- func SetOutput(output io.Writer)
- func Warn(v ...interface{})
- func Warnf(f string, v ...interface{})
- func Warnln(v ...interface{})
- type WaterLog
- func (w *WaterLog) Debug(v ...interface{})
- func (w *WaterLog) Debugf(f string, v ...interface{})
- func (w *WaterLog) Debugln(v ...interface{})
- func (w *WaterLog) Error(v ...interface{})
- func (w *WaterLog) Errorf(f string, v ...interface{})
- func (w *WaterLog) Errorln(v ...interface{})
- func (w *WaterLog) Fatal(v ...interface{})
- func (w *WaterLog) Fatalf(f string, v ...interface{})
- func (w *WaterLog) Fatalln(v ...interface{})
- func (w *WaterLog) Flags() int
- func (w *WaterLog) Good(v ...interface{})
- func (w *WaterLog) Goodf(f string, v ...interface{})
- func (w *WaterLog) Goodln(v ...interface{})
- func (w *WaterLog) Info(v ...interface{})
- func (w *WaterLog) Infof(f string, v ...interface{})
- func (w *WaterLog) Infoln(v ...interface{})
- func (w *WaterLog) Level() uint8
- func (w *WaterLog) Output(calldepth int, s string) error
- func (w *WaterLog) Panic(v ...interface{})
- func (w *WaterLog) Panicf(f string, v ...interface{})
- func (w *WaterLog) Panicln(v ...interface{})
- func (w *WaterLog) Print(v ...interface{})
- func (w *WaterLog) Printf(f string, v ...interface{})
- func (w *WaterLog) Println(v ...interface{})
- func (w *WaterLog) SetFlags(flag int)
- func (w *WaterLog) SetFormat(format format.Func)
- func (w *WaterLog) SetLevel(level uint8)
- func (w *WaterLog) SetOutput(output io.Writer)
- func (w *WaterLog) Time() string
- func (w *WaterLog) Warn(v ...interface{})
- func (w *WaterLog) Warnf(f string, v ...interface{})
- func (w *WaterLog) Warnln(v ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Fatal ¶ added in v1.0.5
func Fatal(v ...interface{})
Fatal is a styled Print followed by os.Exit(1)
func Fatalf ¶ added in v1.0.5
func Fatalf(f string, v ...interface{})
Fatalf is a styled Printf followed by os.Exit(1)
func Fatalln ¶ added in v1.0.5
func Fatalln(v ...interface{})
Fatalln is a styled Println followed by os.Exit(1)
func Panic ¶ added in v1.0.5
func Panic(v ...interface{})
Panic is a styled Print followed by a call to panic("")
func Panicf ¶ added in v1.0.5
func Panicf(f string, v ...interface{})
Panicf is a styled Printf followed by a call to panic("")
func Panicln ¶ added in v1.0.5
func Panicln(v ...interface{})
Panicln is a styled Println followed by a call to panic("")
func Printf ¶ added in v1.0.5
func Printf(f string, v ...interface{})
Printf is a mutex protect fmt.Fprintf
func Println ¶ added in v1.0.5
func Println(v ...interface{})
Println is a mutex protect fmt.Fprintln
Types ¶
type WaterLog ¶
type WaterLog struct {
// contains filtered or unexported fields
}
WaterLog is a styled log.Logger
func (*WaterLog) Fatal ¶
func (w *WaterLog) Fatal(v ...interface{})
Fatal is a styled Print followed by os.Exit(1)
func (*WaterLog) Fatalln ¶
func (w *WaterLog) Fatalln(v ...interface{})
Fatalln is a styled Println followed by os.Exit(1)
func (*WaterLog) Panic ¶
func (w *WaterLog) Panic(v ...interface{})
Panic is a styled Print followed by a call to panic("")
func (*WaterLog) Panicln ¶
func (w *WaterLog) Panicln(v ...interface{})
Panicln is a styled Println followed by a call to panic("")
func (*WaterLog) Print ¶
func (w *WaterLog) Print(v ...interface{})
Print is a mutex protect fmt.Fprint
func (*WaterLog) Println ¶
func (w *WaterLog) Println(v ...interface{})
Println is a mutex protect fmt.Fprintln