Class LogEventGuardContext

Base class for entities that want to be able to filter log event instances.

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

guard: LogEventGuard = ...

Methods

  • 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.

    Parameters

    • enabled: boolean

    Returns LogEventGuardContext

Generated using TypeDoc