Documentation ¶
Index ¶
- Constants
- func SetLevel(l float64)
- type Level
- type Logger
- func (l *Logger) Debug(format string, msg ...interface{})
- func (l *Logger) Error(err error)
- func (l *Logger) ErrorString(format string, msg ...interface{})
- func (l *Logger) Info(format string, msg ...interface{})
- func (l *Logger) IsPrintable(lvl Level) bool
- func (l *Logger) Line()
- func (l *Logger) Log(format string, msg ...interface{})
- func (l *Logger) NewLine()
- func (l *Logger) Warn(format string, msg ...interface{})
- type Printer
- type Table
Constants ¶
View Source
const ( LINE = "------------------------------------------------------------" EMPTY = "" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Logger ¶
type Logger struct { Name string // contains filtered or unexported fields }
Logger is printable object where it has level and format of the output Normally, you going to use this kind of output for enduser to understand what happen
func (*Logger) ErrorString ¶
func (*Logger) IsPrintable ¶
type Printer ¶
type Printer struct {
// contains filtered or unexported fields
}
Printer is printable object where it doesn't have own level but it still respect SILENT mode Normally, you going to use this kind of output for custom format (table, readme etc.)
func GetPrinter ¶
func GetPrinter() *Printer
func NewDefaultPrinter ¶
func NewDefaultPrinter() *Printer
func NewPrinter ¶
type Table ¶
type Table struct {
// contains filtered or unexported fields
}
func NewDefaultTable ¶
func NewDefaultTable() *Table
Click to show internal directories.
Click to hide internal directories.