This package can be installed with composer.
$ composer require lukewaite/monolog-memory-usage-processor
$memoryUsage = new MemoryUsageProcessor( true ); // Human formatted
$memoryUsage = new MemoryUsageProcessor( false ); // Not human formatted
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.