Comments (2)
Thanks for taking the time to explain 👍
from laravel-console-logger.
Hi, @JayBizzle !
Thanks for your kind words! :)
I'm reserving a bit of memory (while registering shutdown function), to have an ability to execute all required operations while handling "Fatal Error: Allowed Memory Size of ... Bytes Exhausted".
If you take a look on handling method:
laravel-console-logger/src/Exceptions/ExceptionHandler.php
Lines 54 to 71 in 7ae85f6
You'll see, that the first thing I do - is releasing that memory:
$this->reservedMemory = null;
And after that, I'm able to do all stuff, which you can see there below (which requires a bit of memory too).
PS: I've saw that trick at Monolog actually, so hat tips to Monolog :)
https://github.com/Seldaek/monolog/blob/master/src/Monolog/ErrorHandler.php
from laravel-console-logger.
Related Issues (11)
- ERROR Class 'App\Exceptions\Handler' not found HOT 2
- Sentry doesn't send events from Loggable HOT 3
- Can't install on 5.6 HOT 1
- Your requirements could not be resolved to an installable set of packages. HOT 1
- Support for Laravel 10 HOT 2
- ERROR: $log must be protected HOT 3
- Compatibility issue with Laravel's class optimizer HOT 4
- Exception handler conflicts with existing exception handler HOT 2
- Lumen compatibility HOT 5
- 5.6 incompatible with monolog > 1.23 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel-console-logger.