Documentation
¶
Overview ¶
Package logger provides a wrapper around log that adds color support with github.com/fatih/color.
Index ¶
- func Lshortfile(level int) string
- func LshortfileTree() string
- type Logger
- func (l *Logger) Fatal(v ...interface{})
- func (l *Logger) Fatalf(format string, v ...interface{})
- func (l *Logger) Print(v ...interface{})
- func (l *Logger) Printf(format string, v ...interface{})
- func (l *Logger) PrintfCustomLevel(level int, format string, v ...interface{})
- func (l *Logger) PrintfNoFile(format string, v ...interface{})
- func (l *Logger) Println(v ...interface{})
- func (l *Logger) SetFatalFunc(f func(err interface{}))
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Lshortfile ¶
Lshortfile is a re-implemented log.Lshortfile with a modifiable call level.
func LshortfileTree ¶
func LshortfileTree() string
Types ¶
type Logger ¶
type Logger struct {
Empty bool
// contains filtered or unexported fields
}
func NewEmptyLogger ¶
func NewEmptyLogger() (l *Logger)
func (*Logger) PrintfCustomLevel ¶
func (*Logger) PrintfNoFile ¶
func (*Logger) SetFatalFunc ¶
func (l *Logger) SetFatalFunc(f func(err interface{}))
Click to show internal directories.
Click to hide internal directories.