Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 2 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 (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2024-04-29T14:56:09.000Z (8 months ago)
- Last Synced: 2024-09-24T02:40:41.247Z (3 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
[![Latest Version on Packagist](https://img.shields.io/packagist/v/lukewaite/monolog-memory-usage-processor.svg?style=flat-square)](https://packagist.org/packages/lukewaite/monolog-memory-usage-processor)
[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE.md)
[![Build Status](https://img.shields.io/travis/lukewaite/monolog-memory-usage-processor/master.svg?style=flat-square)](https://travis-ci.org/lukewaite/monolog-memory-usage-processor)
[![Total Downloads](https://img.shields.io/packagist/dt/lukewaite/monolog-memory-usage-processor.svg?style=flat-square)](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