basic for logging

Saving ip address, time, request text and status in file "logfile"
automatically, because l_flag for logging has not been set up yet.
And could not get the content length of the response.