@livy/null-handler
v1.0.4
Published
Black hole for Livy log records
Downloads
3
Maintainers
Readme
@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.