Documentation ¶
Index ¶
- Variables
- type Fatal
- type Interceptor
- type Interceptors
- func (instance *Interceptors) Add(v Interceptor) *Interceptors
- func (instance Interceptors) GetPriority() int16
- func (instance Interceptors) Len() int
- func (instance Interceptors) Less(i, j int) bool
- func (instance Interceptors) OnAfterLog(event log.Event, provider log.Provider) (canContinue bool)
- func (instance Interceptors) OnBeforeLog(event log.Event, provider log.Provider) (intercepted log.Event)
- func (instance Interceptors) Swap(i, j int)
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultFatal = Fatal{ ExitCode: support.PInt(13), }
Functions ¶
This section is empty.
Types ¶
type Interceptor ¶
type Interceptor interface { OnBeforeLog(log.Event, log.Provider) (intercepted log.Event) OnAfterLog(log.Event, log.Provider) (canContinue bool) GetPriority() int16 }
var Default Interceptor = Interceptors{}
func Noop ¶
func Noop() Interceptor
type Interceptors ¶
type Interceptors []Interceptor
func (*Interceptors) Add ¶ added in v0.4.0
func (instance *Interceptors) Add(v Interceptor) *Interceptors
func (Interceptors) GetPriority ¶ added in v0.4.0
func (instance Interceptors) GetPriority() int16
func (Interceptors) Len ¶ added in v0.4.0
func (instance Interceptors) Len() int
func (Interceptors) Less ¶ added in v0.4.0
func (instance Interceptors) Less(i, j int) bool
func (Interceptors) OnAfterLog ¶
func (Interceptors) OnBeforeLog ¶
func (Interceptors) Swap ¶ added in v0.4.0
func (instance Interceptors) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.