I tried googling but didnt find a good answer.
Can I in an easy way log all the server status messages to a model, file or the database, so it can be inspected later in a template or the admin?
Are you referring to the http response codes? (e.g. 200, 404, etc)
Those are usually logged by your web server to files. That logging information can usually also be directed to syslog which can be configured to put that information just about anywhere desired.
Are there any good ressources on this anywhere?
Yes I am. Exastly those
Somewhat depends upon which web server you’re using.
For example, if you’re using nginx, see Configuring Logging | NGINX Plus
You could write your own syslog daemon to write the data to a database, or you could investigate a product like syslog-ng.
Or you could create a job that runs daily after the logs are rotated, and copy the desired data from the files to another file or database.
Or you could tail the log files and capture that data in near-real-time. (Log rotation can be a bit of an issue, but can be handled.)
I will have a look at those. Thank you