8p / EightPointsGuzzleBundle

⛽️ Integrates Guzzle 6.x, a PHP HTTP Client, into Symfony
MIT License
440 stars 71 forks source link

A log channel by client #318

Closed adpeyre closed 2 years ago

adpeyre commented 2 years ago

Hi,

Today, all logs of clients are logged in the same channel. \ Is there a solution for a specific client to use a defined channel ?

I would like for example attach an email alert for a specific API (client).

Ty

gregurco commented 2 years ago

Hello @adpeyre

Sorry for the late reply. Special middleware is responsible for logs. You can find this middleware here. This middle is defined defined in configuration here. So, you can see that we use special channel: eight_points_guzzle. If this channel doesn't help you, as quick solution I can suggest to defined manually another middleware using same middleware class and your own adjusted configuration.