Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/dxx/src/lib/$shared.ts>$logger.Filter

🚀 (Deno) enhanced executor
Latest
class $logger.Filter
import { $logger } from "https://deno.land/x/dxx@rf/src/lib/$shared.ts";
const { Filter } = $logger;

A filter transform which uses a predicate(_:LogEntry) function to process and selectively discard entries.

  • the built-in/default predicate is a priority filter which defaults to simple pass-through of all LogEntry's

Constructors

new
Filter(options?: FilterOptions)

Properties

level: number | string
predicate: (entry: LogEntry, props?: Record<string, unknown>) => boolean

Methods

protected
_getLevelNumber(level: number | string, levels: LevelMap)