I just have my own class that I create a global instance of, and that logs to file under a specified folder structure based on date, like:
app\logs\2023\10\05\app.log
Then an append method like:
myApp.goLogger.Append("some text")
Which updates the log file like:
2023-10-05T14:44:58:some text
If I needed features like logging to a table, different log levels and so forth I'd use one of the two you mentioned.