Documentation ¶
Index ¶
- Variables
- func DecodeError(e error) string
- func Define(info string) *traceError
- func Equal(e1, e2 error) bool
- func EqualAny(e error, es []error) bool
- func NewError(info ...interface{}) *traceError
- func NewErrorf(format string, info ...interface{}) *traceError
- func NewGoLog(w io.Writer) *goLog.Logger
- func SetStd(l *Logger)
- func Sprint(o ...interface{}) string
- func Sprintf(f string, o ...interface{}) string
- func Trace(err error, info ...interface{}) error
- func TraceError(err error, info ...interface{}) *traceError
- func TraceEx(depth int, err error, info ...interface{}) *traceError
- func Tracef(err error, obj ...interface{}) *traceError
- func Tracefmt(layout string, objs ...interface{}) error
- type Logger
- func (l Logger) Debug(o ...interface{})
- func (l Logger) Debugf(f string, o ...interface{})
- func (l Logger) DownLevel(i int) Logger
- func (l Logger) Error(o ...interface{})
- func (l Logger) Errorf(f string, o ...interface{})
- func (l Logger) Fatal(o ...interface{})
- func (l Logger) Fatalf(f string, o ...interface{})
- func (l Logger) Info(o ...interface{})
- func (l Logger) Infof(f string, o ...interface{})
- func (l Logger) Output(calldepth int, s string) error
- func (l Logger) Panic(o ...interface{})
- func (l Logger) Panicf(f string, o ...interface{})
- func (l Logger) Pretty(os ...interface{})
- func (l Logger) Print(o ...interface{})
- func (l Logger) PrintStack()
- func (l Logger) Printf(layout string, o ...interface{})
- func (l Logger) Println(o ...interface{})
- func (l Logger) Stack() []byte
- func (l Logger) Struct(o ...interface{})
- func (l Logger) Todo(o ...interface{})
- func (l Logger) Warn(o ...interface{})
- func (l Logger) Warnf(f string, o ...interface{})
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Println = std.Println Infof = std.Infof Info = std.Info Debug = std.Debug Debugf = std.Debugf Error = std.Error Errorf = std.Errorf Warn = std.Warn PrintStack = std.PrintStack Stack = std.Stack Panic = std.Panic Fatal = std.Fatal Struct = std.Struct Pretty = std.Pretty Todo = std.Todo )
View Source
var ( INFO = "[INFO] " ERROR = "[ERROR] " PANIC = "[PANIC] " DEBUG = "[DEBUG] " WARN = "[WARN] " FATAL = "[FATAL] " STRUCT = "[STRUCT] " PRETTY = "[PRETTY] " TODO = "[TODO] " )
View Source
var DebugLevel = 1
View Source
var ShowCode = true
Functions ¶
func DecodeError ¶
func TraceError ¶
func TraceError(err error, info ...interface{}) *traceError
set runtime info to error
Types ¶
type Logger ¶
func NewLoggerEx ¶
func (Logger) PrintStack ¶
func (l Logger) PrintStack()
Click to show internal directories.
Click to hide internal directories.