Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

PNeal's avatar

May i add to the suggestion "best practices, when to log, what to log, what not to log,.." When is the best time to separate log files? By severity: info, warning, error, by username, by thread, ..?

+1

tankerkiller125's avatar

Also useful for people building scaled apps that go across many servers and plan on using somthing like logstash to keep the logs in one spot.

tylernathanreed's avatar

Logging is definitely something that comes up in real applications. I'd love to see a series on this.

+1

tristanbailey's avatar

+1 for using logging (where is good to add extra logging in your app for example) and for adding external services for log collection like Logentries, and many other services

poxin's avatar

+1 - Figured out how to log to a single, but having issues splitting up logs to separate files as needed.

Please or to participate in this conversation.