Hello guys, I am so sorry for replying this late:
@a2hostingrj about the we_statistic, as far as I read, I did not see if the exported files are real-time or after a certain period of time. In my system, since I need to do some action toward accessing IP, I need to get every access to my site in real-time, otherwise, my action would be too late. Your link of how to get real IP would help me in the future to implement more advanced feature. For now, I just need to learn how to get the access real-time and implement some basic feature.
@diondesigns I read about the error_log() and it would be a great idea for more advanced feature later. For the current situation, I just need the normal log with record of access to do some basic analysis.