0
I need to save the var_dump($file) records in the monolog to identify an error. I don’t know how to proceed. My monolog in app config
monolog:
handlers:
main:
type: 'rotating_file'
path: "%kernel.logs_dir%/producao.log"
level: debug
channels: [!event]
console:
type: console
channels: [!event, !doctrine]
If you want to record the exit of
var_dump()
, use the functionvar_export()
ex:$resultado = var_export($var, true);
– rray
And you can put that to work on the monolog?
– fabricio_wm