@livy/memory-usage-processor
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

@livy/memory-usage-processor

This Livy processor injects current memory usage into a log record's extra object.


Runtime: Node.js


Basic Example

const { createLogger } = require('@livy/logger')
const { MemoryUsageProcessor } = require('@livy/memory-usage-processor')

const logger = createLogger('app-logger', {
  processors: [new MemoryUsageProcessor()]
})

Installation

Install it via npm:

npm install @livy/memory-usage-processor

Options

The MemoryUsageProcessor constructor takes an optional boolean humanReadable parameter (which defaults to true). It formats memory usage in a human readable way. Turn it off to inject the raw number of bytes.

/@livy/memory-usage-processor/

    Package Sidebar

    Install

    npm i @livy/memory-usage-processor

    Weekly Downloads

    2

    Version

    1.0.4

    License

    MIT

    Unpacked Size

    9.53 kB

    Total Files

    6

    Last publish

    Collaborators

    • loilo