I’m developing a sort of web application and recently come a need to log some of user activities in it. Therefore come with natural question is it a good idea to use Apache server logging mechanism for that? If the answer is yes, please explain why and so if not. Mine main concern is reduction in performance as a result of enabling logging in Apache. As well, what is the best practice for building logging mechanism in order to be able to track client activity in web based application?
Share
As MaxVT said, it is highly unlikely that the overhead of logging would impact performance. The overhead of network latency in a web application is generally far greater than a single disk write, which can be in the single-digit microseconds range.
Generally, web based applications should always have some form of logging turned on, and the mod_logger based logs in Apache is a very cheap way of doing it.