Crypter-File-Transfer / Crypter

A Blazor WASM web application that offers end-to-end encrypted file and message transfer using Libsodium, Entity Framework, Hangfire, Docker, NUnit, and Mailkit.
https://www.crypter.dev
GNU Affero General Public License v3.0
37 stars 15 forks source link

Add event logging framework #693

Closed Jack-Edwards closed 4 months ago

Jack-Edwards commented 5 months ago

I want to begin measuring how much activity the hosted instance of https://www.crypter.dev is receiving in order to help prioritize and focus my time.

If the site is not receiving much activity, I may stop developing. Alternatively, if the site is getting a lot of attention, then I may decide to dedicate more time to improving the project.

This PR adds a new "EventLogging" table which will begin to store all sorts of back-end events. The events I intend to begin with are:

Despite my intent to not violate user privacy, I understand tracking how frequently a user logs in and where the user is logging in from (i.e., the device description) might burn a few people. I'm open to ideas in case anyone is put off by the idea. I'll leave this PR open for feedback as I continue to add the remaining event types throughout the back-end.

Jack-Edwards commented 4 months ago

Deployed to the dev environment and confirmed working without regression.