I have found a free logviewer host that is quite simple and easy to use. The only inconvenience is that you can only host one app in its free version. This is https://www.fl0.com/ in case you want to do some research about this host.
I don't know how easy it would be to do this, an example of what could be done is that the environment variables are:
"client_id"="mongo_uri"
and the url
https://host.app/logs/client_id/thread_id
This suggestion would be appreciated by those of us who host several modmail clients and moderation of Discord servers.