Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/powerlog/lib/LevelManager.ts>default

A powerful logger for Deno.
Latest
class default
implements ILevelEmitter<Levels>
import { default } from "https://deno.land/x/powerlog@0.1.0/lib/LevelManager.ts";

Manage what levels goes through or is ignored.

Constructors

new
default(levels: Levels, enableArray?: (keyof Levels | number)[] | -1)

Initialize a new level manager.

Properties

readonly
enum: Levels
readonly
levels: number

Get the levels that are currently enabled.

Methods

disable(...levels: (keyof Levels | number)[]): this

Disable one or more levels.

emits(...levels: (keyof Levels | number)[]): boolean

Check whether one or more levels are emitted.

enable(...levels: (keyof Levels | number)[]): this

Enable one or more levels.