Documentation ¶
Index ¶
- Constants
- func Assert(v ...interface{})
- func Customize(color Color, prefix string, format string, v ...interface{})
- func Debug(v ...interface{})
- func Error(err interface{})
- func Exit(v interface{})
- func Hook(v bool)
- func Log(v ...interface{})
- func NewList() *list
- func NewTable() *table
- func OneLine(format string, v ...interface{})
- func OutPut(v bool)
- func Printf(format string, v ...interface{})
- func Println(v ...interface{})
- func SetDebugHook(fn func(t time.Time, file string, line int, v ...interface{}))
- func SetErrorHook(fn func(err exception.Error))
- func SetHook(fn func(status string, t time.Time, file string, line int, v ...interface{}))
- func SetLogHook(fn func(t time.Time, file string, line int, v ...interface{}))
- func SetWarningHook(fn func(t time.Time, file string, line int, v ...interface{}))
- func Warning(v ...interface{})
- type Color
- type Logger
Constants ¶
View Source
const Asc = tab.Asc
View Source
const Dec = tab.Dsc
Variables ¶
This section is empty.
Functions ¶
func SetDebugHook ¶
func SetErrorHook ¶
func SetWarningHook ¶
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
Click to show internal directories.
Click to hide internal directories.