kyleoneill / pat

0 stars 0 forks source link

Logging #1

Open kyleoneill opened 1 month ago

kyleoneill commented 1 month ago

The backend needs the ability to log user requests. Logs should include

  1. IP of who is making the request
  2. Request details, including endpoint/path, query params, body params
  3. If the request has an authorization header, the id of the user making the request
kyleoneill commented 2 weeks ago

This is blocked until https://github.com/kyleoneill/pat/issues/2 is resolved. There is a disconnected skeleton of logging now in the app, but no logs are actually being saved to the database.

After a task system is implemented, will need to create both a logging task and some struct which holds logs. When the logging task is run, pop each task from the container struct and write it to the database.