DEV Community

Discussion on: Investigating an incident: how to log effectively (PHP)

Collapse
 
he110 profile image
Elijah Zobenko

Hey! Good solution. How do you collect logs from different servers?
The main benefit of using Monolog (or another lib with multi handling) is possibility to separate log levels and to create alarms, but using ELK/Graylog (and maybe Sentry) will solve that task even better.

Collapse
 
suckup_de profile image
Lars Moelleken

Yes, we use Sentry for warnings and errors (php + js). It's much better then a classic logging. 👍💯

Thread Thread
 
he110 profile image
Elijah Zobenko

Sentry is awesome. I wouldn’t replace whole logging with it, since it covers only error/accident reaction and monitoring. Sequences to reproduce errors are still on the logging part.