monolog-bundle
monolog-bundle copied to clipboard
How can I have one log file for each customer
trafficstars
Hi,
I got a service class that log some data.
I would like to separate my logs for each of my customer (that are registered in my db) eg :
MySQL table 'customer' : id : 1 | name : customer X id : 2 | name : customer Y
Logs :
- /var/log/customer_X.log
- /var/log/customer_Y.log
How can I do this?
Thanks a lot.
Sorry, but this is hard to answer without knowing how you have implemented the customer switching in your application. Maybe you should ask this question in the Symfony Slack instead.
Hello @PauchardThomas, did you find a solution?