@livy/null-handler
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

@livy/null-handler

This Livy handler acts as a black hole. Any record it can handle will be thrown away. This can be used to put on top of an existing stack to override it temporarily.


Synchronous logger support: yes

Runtime: Node.js and browsers


Basic Example

const { NullHandler } = require('@livy/null-handler')

const handler = new NullHandler('error')

Installation

Install it via npm:

npm install @livy/null-handler

Options

This handler's constructor accepts an optional minimum log level (defaulting to 'debug'). All log records below that level will regularly bubble up the stack, everything else will be thrown away.

/@livy/null-handler/

    Package Sidebar

    Install

    npm i @livy/null-handler

    Weekly Downloads

    2

    Version

    1.0.4

    License

    MIT

    Unpacked Size

    5.91 kB

    Total Files

    6

    Last publish

    Collaborators

    • loilo