Create logging json schema for API, i.e. for each api event what to log (time, process, what happened, input, output, error messages etc.)
Implement API logging to local sqlite using https://github.com/tiangolo/sqlmodel (no need to use python logger, just write log records straight to sqlite as JSON strings.
Implement setting switch for including or omitting data (e.g. prediction inputs and outputs) from logs to avoid privacy issues with personal data
Create logging json schema for API, i.e. for each api event what to log (time, process, what happened, input, output, error messages etc.)
Implement API logging to local sqlite using https://github.com/tiangolo/sqlmodel (no need to use python logger, just write log records straight to sqlite as JSON strings.
Implement setting switch for including or omitting data (e.g. prediction inputs and outputs) from logs to avoid privacy issues with personal data