Documentation ¶
Index ¶
- func GuessCaller(skip int, maxDepth int, ignorePackages ...string) (pc uintptr, ok bool)
- type Event
- type EventData
- type EventError
- type EventInfo
- type FuncInfo
- type Level
- func (lvl Level) Get() interface{}
- func (lvl Level) GoString() string
- func (lvl *Level) MarshalJSON() (b []byte, err error)
- func (lvl Level) MarshalText() (b []byte, err error)
- func (lvl Level) MarshalYAML() (b []byte, err error)
- func (lvl Level) Priority() int
- func (lvl *Level) Set(s string) (err error)
- func (lvl Level) String() string
- 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)
- type Logger
- type LoggerFunc
- type ParseLevelError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Event ¶
type EventError ¶
type EventError struct { Type string `json:"type,omitempty"` Error string `json:"error,omitempty"` Errno int `json:"errno,omitempty"` Stack interface{} `json:"stack,omitempty"` OriginalError error `json:"origError,omitempty"` }
func MakeEventError ¶
func MakeEventError(err error) EventError
type EventInfo ¶
type FuncInfo ¶
func GetFuncInfo ¶
type Level ¶
type Level int
func ParseLevel ¶
func (*Level) MarshalJSON ¶
func (Level) MarshalText ¶
func (Level) MarshalYAML ¶
func (*Level) UnmarshalJSON ¶
func (*Level) UnmarshalText ¶
func (*Level) UnmarshalYAML ¶
type LoggerFunc ¶
func (LoggerFunc) Log ¶
func (f LoggerFunc) Log(e Event) error
type ParseLevelError ¶
type ParseLevelError struct {
Level string
}
func (ParseLevelError) Error ¶
func (e ParseLevelError) Error() string
Click to show internal directories.
Click to hide internal directories.