Versions in this module Expand all Collapse all v0 v0.2.0 Apr 21, 2020 Changes in this version + func GuessCaller(skip int, maxDepth int, ignorePackages ...string) (pc uintptr, ok bool) + type Event struct + Data EventData + Info EventInfo + Level Level + Message string + Time time.Time + func Eprint(level Level, args ...interface{}) Event + func Eprintf(level Level, format string, args ...interface{}) Event + func MakeEvent(level Level, message string, values ...interface{}) Event + func (e Event) Bytes() []byte + func (e Event) String() string + type EventData map[string]interface + func (e EventData) Bytes() []byte + func (e EventData) String() string + type EventError struct + Errno int + Error string + OriginalError error + Stack interface{} + Type string + func MakeEventError(err error) EventError + type EventInfo struct + Errors []EventError + GID int + Host string + ID string + PID int + Source string + UID int + func (e EventInfo) Bytes() []byte + func (e EventInfo) String() string + type FuncInfo struct + File string + Func string + Line int + func GetFuncInfo(pc uintptr) (info FuncInfo, ok bool) + func (info FuncInfo) String() string + type Level int + const ALERT + const CRIT + const DEBUG + const EMERG + const ERROR + const INFO + const NONE + const NOTICE + const TRACE + const WARN + func MakeLevel(p int) Level + func ParseLevel(s string) (lvl Level, err error) + func (lvl *Level) MarshalJSON() (b []byte, err error) + func (lvl *Level) Set(s string) (err error) + func (lvl *Level) UnmarshalJSON(b []byte) (err error) + func (lvl *Level) UnmarshalText(b []byte) (err error) + func (lvl *Level) UnmarshalYAML(f func(interface{}) error) (err error) + func (lvl Level) Get() interface{} + func (lvl Level) GoString() string + func (lvl Level) MarshalText() (b []byte, err error) + func (lvl Level) MarshalYAML() (b []byte, err error) + func (lvl Level) Priority() int + func (lvl Level) String() string + type Logger interface + Log func(Event) error + func NewLogger(w io.Writer) Logger + type LoggerFunc func(Event) error + func (f LoggerFunc) Log(e Event) error + type ParseLevelError struct + Level string + func (e ParseLevelError) Error() string