Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I have one log file for each customer #408

Open
PauchardThomas opened this issue May 25, 2021 · 2 comments
Open

How can I have one log file for each customer #408

PauchardThomas opened this issue May 25, 2021 · 2 comments

Comments

@PauchardThomas
Copy link

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.

@dbrumann
Copy link
Contributor

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.

@GromNaN
Copy link
Member

GromNaN commented Dec 19, 2022

Hello @PauchardThomas, did you find a solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants