Logging API Call

I wrote an API and am currently looking at how best to provide logging for the system.

We want to have an idea of ​​the calls made, if frequent calls occur very often, etc.

What is the best way to record and present all this information simply?

Just wondering if there are any ready-made or widely used API solutions that cover what I'm looking for.

+3
source share
3 answers

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, .

+2

, , , - Apache. , Webalizer.

+1

" " - , ? . http://www.webservius.com - API (, , , ..)

0

Source: https://habr.com/ru/post/1770856/


All Articles