Reputation: 2470
Suppose we need to log some data on every php call on each request being made to the server on a high traffic- request heavy web application, to basically trace the actions taken by each client. I was considering saving them to memory and then logging all in one go to prevent frequent disk access. Is there a Php framework which already does this which I can reuse? I need to do this on the actual production server so I dont want to use stuff like xdebug.
Upvotes: 1
Views: 1615
Reputation: 9156
I would use apc_store
, i use it for light php request time analyzer
https://gist.github.com/aiphee/8004486cbd37b3f13efd271b8457cb38
Upvotes: 0