Documentation ¶
Index ¶
- Constants
- func AssertError(v ...interface{})
- func Debug(v ...interface{})
- func Debugf(format string, v ...interface{})
- func Error(v ...interface{})
- func Errorf(format string, v ...interface{})
- func Exit(v interface{})
- func Info(v ...interface{})
- func Infof(format string, v ...interface{})
- func NewJsonFormatter() *jsonFormatter
- func NewTextFormatter() *textFormatter
- func OneLine(format string, v ...interface{})
- func Printf(format string, v ...interface{})
- func Println(v ...interface{})
- func SetColor(flag bool)
- func SetFlags(flags int)
- func SetFormatter(formatter Formatter)
- func SetHook(hook Hook)
- func SetLogger(logger *Logger)
- func Warning(v ...interface{})
- func Warningf(format string, v ...interface{})
- type Color
- type Entry
- type Formatter
- type Hook
- type Level
- type Logger
- func (log *Logger) Debug(args ...interface{})
- func (log *Logger) Debugf(format string, args ...interface{})
- func (log *Logger) Error(args ...interface{})
- func (log *Logger) Errorf(format string, args ...interface{})
- func (log *Logger) Info(args ...interface{})
- func (log *Logger) Infof(format string, args ...interface{})
- func (log *Logger) SetColor(flag bool)
- func (log *Logger) SetFlags(flags int)
- func (log *Logger) SetFormatter(formatter Formatter)
- func (log *Logger) SetHook(hook Hook)
- func (log *Logger) Warning(args ...interface{})
- func (log *Logger) Warningf(format string, args ...interface{})
Constants ¶
View Source
const ( NONE = 0 LEVEL = 1 << iota TIME FILE )
Variables ¶
This section is empty.
Functions ¶
func AssertError ¶
func AssertError(v ...interface{})
func NewJsonFormatter ¶
func NewJsonFormatter() *jsonFormatter
func NewTextFormatter ¶
func NewTextFormatter() *textFormatter
func SetFormatter ¶
func SetFormatter(formatter Formatter)
Types ¶
type Color ¶
type Color int
const ( Reset Color = iota Bold Faint Italic Underline BlinkSlow BlinkRapid ReverseVideo Concealed CrossedOut )
Base colors -- attributes in reality
Foreground colors
const ( FgHiBlack Color = iota + 90 FgHiRed FgHiGreen FgHiYellow FgHiBlue FgHiMagenta FgHiCyan FgHiWhite )
Foreground Hi-Intensity colors
Background colors
type Logger ¶
func (*Logger) SetFormatter ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.