monolog-bundle icon indicating copy to clipboard operation
monolog-bundle copied to clipboard

How can I have one log file for each customer

Open PauchardThomas opened this issue 4 years ago • 2 comments
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.

PauchardThomas avatar May 25 '21 14:05 PauchardThomas

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.

dbrumann avatar May 25 '21 17:05 dbrumann

Hello @PauchardThomas, did you find a solution?

GromNaN avatar Dec 19 '22 23:12 GromNaN