I have a Silex application within I have set up a Monolog logger service. In debug mode, the logs are like (INFO level):
[2018-02-21 09:08:26] appName.INFO: > GET /customers [] []
[2018-02-21 09:08:27] appName.INFO: < 200 [] []
I would like to keep a trace of the user who generate those requests, by writing the username in the log, next to the date for instance.
Is there a way to customize the Monolog template to achieve that ?