There are several ways to do this. First, I'll start with an abstract logging solution, something like Monolog [https://github.com/Seldaek/monolog]. This way you can test and play back with what you want to enter into a text file, and then move on to a more elegant solution.
The monologue has handlers for a bunch of different services / containers for ligation. For API usage logging, I would like to take a look at the following:
GrayLog2 , a really good open source signup system.
Cube is also a great open source project for collecting timestamped events.
Loggly, Cloud. Loggly, , . Monolog , : Gitub .
Sentry, , . Loggly, Monolog, API, .