Log system

With the latest release (v3.5 (Bumblebee)) it has been added the Log system. This functionality has been added in order to make it easier the debug process of PushApi.

This system works if the API in all environments of the API (production and development).

The difference between production and development environment is that on production mode, it is logged only the errors that we should know (the important ones), and on development mode, it is logged all the full trace that a request is doing.

📘

As on development mode it is being written all the time on a log file, it could have an impact on the response time of the requests.

This can be disabled via the configuration file.

1385

Sample of how the log is being displayed using bash.

As we can see at the picture, the log file is being created with colors using a "colored scale of risc" being the warm colors the serious errors, and cold colors just information that can be avoided.