I work at an eCommerce company. Our DBA recently told me that using SQL for logging is a bad practice, and recommended a flat file and grepping instead. I had never heard that logging in SQL was a bad practice before and I don't find anything online that confirms this.
When I say logging, I mean logging user actions like signing in, changing account information, etc, and data like their user agent, ip address, account id, and event information.
While it would lead to a lot of rows over time, it makes it extremely easy to search if there is an issue with a customer.
Is logging in SQL a bad practice, and is it preferable to log to a file?
Thanks.