Readonly eventsReadonly forwardAlternate of interceptEvent that can be passed by value
without losing the this context of the interceptor.
Predicate that will be used for log event validation.
Static Readonly FILTER_Static Readonly FILTER_Requests a new event instance from this interceptor.
For the sake of consistency between loggers, it should be left up to the interceptor to generate event instances.
Optional params: any[]Optional timestamp: numberReject all tested events.
Mutually exclusive operation to setCustomFilter; if a
custom filter was set before calling this, it will be cleared.
this for operation chaining.
Accept all tested events.
Mutually exclusive operation to setCustomFilter; if a
custom filter was set before calling this, it will be cleared.
this for operation chaining.
Notifies this instance of a new event to consume.
Applies a custom filter for log event validation.
This should not be used in conjuction with enable/disable methods, as they will overwrite the given custom filter.
this for operation chaining.
the custom filter to use for validation
Convenience for setting enabled state based on a flag.
Mutually exclusive operation to setCustomFilter; if a
custom filter was set before calling this, it will be cleared.
this for operation chaining.
the filter state to use, e.g.
true to accept all events, or
false to reject all events.
Generated using TypeDoc
Route controller for events.
When a logger referencing this transport (via
getLogger(tag)) produces an event, the event will be verified against the transport's filter; if the event is deemed valid, it will be passed on to all assigned consumers, as well as any listeners registered to the transport's event emitter.