vendredi 29 avril 2016

laravel: get name of active log at runtime

I need to know the name of the current log in an app laravel 5.

Try search for this on Iluminate\Log\Writer.

Only see $path var on call to some functions, but i don't understand how to get this value.

Basically I needs to compress file and send if app get some exceptions. For this I need to know the name of active log.

My app conf log for daily rotation, and see name of logs such laravel-2016-04-29.log

I know the name using php, but I imagine it is possible to know using the Log class itself



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire