I was looking at my application and I noticed that the size of my app is huge. So I narrowed it down to app/storage/debugbar witch ways in at 656 MB witch is huge. Are all these .json needed? Is there anyway to put a cleaner that cleans these out sometimes so they don't stack up like this? I also notice that the app bogs down sometimes with the debugbar on.
Are you using it in production? Or just local? There is a command to clear the files: debugbar:clear
I made it to were I can turn the debugbar on and off from the admin panel if I need it. So I don't put the Artisan command line in production. I thought that it might be a security risk?
Why would the artisan command be a security risk? You run it from a secure SSH shell, right?
You can also clear them from the open handler screen, where you can view the old files. Just click on Delete all link.
But I've added a Garbage Collector, to remove all files older then 24 hours, that runs every 5 out of 100 debugbar requests, so it should keep the log directory much cleaner.
Does that work for you (latest dev-master)?
Yep that works thanks for the fix.
How can I retrieve logged data from storage files? @barryvdh
Click the browse button on the debugbar
Hey is there anyway we can stop debugbar from producing this .json files ? Cause I believe there's no use to it as for me personally , because I'm just a dumb end user..
Most helpful comment
Are you using it in production? Or just local? There is a command to clear the files: debugbar:clear