Documentation ¶
Index ¶
- type Fmt
- func (l *Fmt) Debug(a ...interface{})
- func (l *Fmt) Debugf(format string, a ...interface{})
- func (l *Fmt) Error(a ...interface{})
- func (l *Fmt) Errorf(format string, a ...interface{})
- func (l *Fmt) Fatal(a ...interface{})
- func (l *Fmt) Fatalf(format string, a ...interface{})
- func (l *Fmt) Info(a ...interface{})
- func (l *Fmt) Infof(format string, a ...interface{})
- func (l *Fmt) IsLevel(v Level) bool
- func (l *Fmt) Level() Level
- func (l *Fmt) Must(err error)
- func (l *Fmt) Named(name string) Logger
- func (l *Fmt) Print(a ...interface{})
- func (l *Fmt) Printf(format string, a ...interface{})
- func (l *Fmt) Success(a ...interface{})
- func (l *Fmt) Successf(format string, a ...interface{})
- func (l *Fmt) Warn(a ...interface{})
- func (l *Fmt) Warnf(format string, a ...interface{})
- type FmtOption
- type Level
- type Logger
- type PTerm
- func (l *PTerm) Debug(a ...interface{})
- func (l *PTerm) Debugf(format string, a ...interface{})
- func (l *PTerm) Error(a ...interface{})
- func (l *PTerm) Errorf(format string, a ...interface{})
- func (l *PTerm) Fatal(a ...interface{})
- func (l *PTerm) Fatalf(format string, a ...interface{})
- func (l *PTerm) Info(a ...interface{})
- func (l *PTerm) Infof(format string, a ...interface{})
- func (l *PTerm) IsLevel(v Level) bool
- func (l *PTerm) Level() Level
- func (l *PTerm) Must(err error)
- func (l *PTerm) Named(name string) Logger
- func (l *PTerm) Print(a ...interface{})
- func (l *PTerm) Printf(format string, a ...interface{})
- func (l *PTerm) Success(a ...interface{})
- func (l *PTerm) Successf(format string, a ...interface{})
- func (l *PTerm) Warn(a ...interface{})
- func (l *PTerm) Warnf(format string, a ...interface{})
- type PTermOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger interface { Level() Level IsLevel(level Level) bool Named(name string) Logger Print(a ...interface{}) Printf(format string, a ...interface{}) Success(a ...interface{}) Successf(format string, a ...interface{}) Debug(a ...interface{}) Debugf(format string, a ...interface{}) Info(a ...interface{}) Infof(format string, a ...interface{}) Warn(a ...interface{}) Warnf(format string, a ...interface{}) Error(a ...interface{}) Errorf(format string, a ...interface{}) Fatal(a ...interface{}) Fatalf(format string, a ...interface{}) Must(err error) }
type PTerm ¶
type PTerm struct {
// contains filtered or unexported fields
}
func NewPTerm ¶
func NewPTerm(opts ...PTermOption) (*PTerm, error)
type PTermOption ¶
func PTermWithDisableColor ¶
func PTermWithDisableColor(v bool) PTermOption
func PTermWithLevel ¶
func PTermWithLevel(v Level) PTermOption
Click to show internal directories.
Click to hide internal directories.