I hope you can help me with this problem. I want to put the user email in the logger file when the user logs out every time. How can I do that? How can I pass the user information to the logout function?
thanks in advance
I hope you can help me with this problem. I want to put the user email in the logger file when the user logs out every time. How can I do that? How can I pass the user information to the logout function?
thanks in advance
Check Symfony's way of logout customization to get information about how to implement such behavior (starting from Symfony 5.1).
The process uses a Symfony event listener
. Check the official documentation for events and event listeners for more information about how to implement this.