https://github.com/lukewaite/monolog-memory-usage-processor
A fuller MemoryUsageProcessor for Monolog
https://github.com/lukewaite/monolog-memory-usage-processor
logging memory-usage monolog php
Last synced: 4 months ago
JSON representation
A fuller MemoryUsageProcessor for Monolog
- Host: GitHub
- URL: https://github.com/lukewaite/monolog-memory-usage-processor
- Owner: lukewaite
- License: mit
- Created: 2018-01-05T10:12:49.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-04-29T14:56:09.000Z (about 1 year ago)
- Last Synced: 2025-03-06T11:12:24.869Z (4 months ago)
- Topics: logging, memory-usage, monolog, php
- Language: PHP
- Size: 25.4 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Monolog Memory Usage Processor
[](https://packagist.org/packages/lukewaite/monolog-memory-usage-processor)
[](LICENSE.md)
[](https://travis-ci.org/lukewaite/monolog-memory-usage-processor)
[](https://packagist.org/packages/lukewaite/monolog-memory-usage-processor)
[![Code Coverage][ico-coverage]][link-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][base] only give you the option to
log with [`real_usage`][realusage] set to true or false. I have a need for both.[base]: https://github.com/Seldaek/monolog/blob/master/src/Monolog/Processor/MemoryUsageProcessor.php
[realusage]: http://php.net/manual/en/function.memory-get-usage.php[ico-coverage]: https://img.shields.io/scrutinizer/coverage/g/lukewaite/monolog-memory-usage-processor/master.svg?style=flat-square
[link-coverage]: https://scrutinizer-ci.com/g/lukewaite/monolog-memory-usage-processor/?branch=master