Readonly
bufferData source responsible for producing new events, or recycling previously created ones.
Set the enabled state of this instance, regarding whether or not it will emit any log events. When true, emits events as normal; when false, suppresses all events.
The main benefit of this is to temorarily suppress all events on this instance, while keeping the currently set filter in-tact.
e.g. If this instance has a custom filter set, and then is disabled, when this is re-enabled later it will continue using the custom filter.
Customize which log events should be ignored by this instance. If the given predicate returns truthy, the event will be passed along to any registered listeners or transports; otherwise it will be suppressed.
Pass null
to reset the filter.
Generated using TypeDoc
Core mechanism that allows many
Logger
instances to report back to a shared resource.Primary entrypoints:
events()
- the sharedEventEmitter
of this tranportsetFilter(...)
- determines which events get emittedsetDefaultBroadcastEnabled(...)
- toggles globalconsole
variable usageNOTE: Call
disableEventCaching()
to revert to v5.x non-event-caching behavior.