Class Logger

Common logging interface to be used on a per-module basis. Can be configured to suppress events based on a custom filter, or disabled entirely.

Events produced by an instance of this class will be passed along to the assigned interceptor for further processing / outlet handling.

Hierarchy

Implements

Constructors

Properties

interceptor: LogEventInterceptor
tag: string
test: LogEventFilterPredicate = LogEventGuard.FILTER_ACCEPT_ALL

Predicate that will be used for log event validation.

FILTER_ACCEPT_ALL: LogEventFilterPredicate = ...
FILTER_BLOCK_ALL: LogEventFilterPredicate = ...

Methods

  • Parameters

    • message: string
    • Rest ...params: any[]

    Returns void

  • Parameters

    • level: number
    • message: string
    • Optional params: any[]
    • Optional timestamp: number

    Returns void

  • Accept all tested events.

    Mutually exclusive operation to setCustomFilter; if a custom filter was set before calling this, it will be cleared.

    Returns

    this for operation chaining.

    Returns Logger

  • Parameters

    • message: string
    • Rest ...params: any[]

    Returns void

  • Parameters

    • message: string
    • Rest ...params: any[]

    Returns void

  • Parameters

    • message: string
    • Rest ...params: any[]

    Returns void

  • Parameters

    • message: string
    • Rest ...params: any[]

    Returns void

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

    Returns

    this for operation chaining.

    Parameters

    • enabled: boolean

      the filter state to use, e.g. true to accept all events, or false to reject all events.

    Returns Logger

  • Parameters

    • message: string
    • Rest ...params: any[]

    Returns void

  • Parameters

    • message: string
    • Rest ...params: any[]

    Returns void

  • Parameters

    • message: string
    • Rest ...params: any[]

    Returns void

Generated using TypeDoc