1.0.4 • Published 1 year ago

@livy/null-handler v1.0.4

Weekly downloads
4
License
MIT
Repository
github
Last release
1 year ago

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

1.0.4

1 year ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago