Sure, you can implement your own log subscriber and do whatever you want with the log lines, including saving them to an entity. I think there is some app store module that does this already.
Note this may have a performance impact though, especially if you do inserts for every single request.
Thanks for the super quick response Bas. I'm in the right direction now :)