How can I save logs to database instead of log file?

I want to redirect logs to a database instead of the log file. I’ve already set the tracker to save conversations on db but I want to save also errors and warnings on a db. How can I do that? Is it possible only on action server? :pleading_face:

You might look at Fluentd which has a long list of plugins