Skip to content

lukewaite/monolog-memory-usage-processor

Repository files navigation

Monolog Memory Usage Processor

Latest Version on Packagist Software License Build Status Total Downloads Code Coverage

Usage

Installing

This package can be installed with composer.

$ composer require lukewaite/monolog-memory-usage-processor

Using the Processor

$memoryUsage = new MemoryUsageProcessor( true ); // Human formatted
$memoryUsage = new MemoryUsageProcessor( false ); // Not human formatted

What is this package for?

The Memory Usage processors provided by the base Monolog package only give you the option to log with real_usage set to true or false. I have a need for both.