Skip to content

Storage backend for PPP logging. Exposes an API used by frontends.

License

Notifications You must be signed in to change notification settings

ProjetPP/PPP-Logger

Repository files navigation

PPP Logging backend

Build Status Code Coverage Scrutinizer Code Quality

How to install

With a recent version of pip:

pip3 install git+https://github.com/ProjetPP/PPP-logger.git

With an older one:

git clone https://github.com/ProjetPP/PPP-Logger.git
cd PPP-Logger
python3 setup.py install

Use the --user option if you want to install it only for the current user.

How to run the logger (for system administrators)

You can write your config.json file in a quite straightforward way, using the file example_config.json as an example.

Then, just run:

PPP_LOGGER_CONFIG=/path/to/json/config.json gunicorn ppp_logger:app

How to use the logger API (for frontend developpers)

Just send a POST request to your logger instance, with this content:

{"id": "<request id>", "question": "<the question the user wrote>",
"responses": [list of responses returned by the core]}

About

Storage backend for PPP logging. Exposes an API used by frontends.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •