-1

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

Mohsen
  • 260
  • 3
  • 14

1 Answers1

1

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.

Thomas Baier
  • 434
  • 3
  • 8