e3ntity / logging_server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Logging Server

This repository contains a simple web service for logging arbitrary data under namespaces.

  • Create a file containing app secrets as app/secret.php using the template in app/secret.example.php.
  • Install composer in the app/lib directory: ./install-composer.sh.
  • Install the slim framework in the app/lib directory: composer.phar require slim/slim:3.*.
  • Start a web server in the public directory.

For logging data, send a POST request to /{namespace} and specify accessKey and text in the body. This will log the text in the logs/{namespace}.txt file.

About


Languages

Language:PHP 93.5%Language:Shell 6.5%