Add ngx_http_log_handler() into ngx_http.h

Since ngx_http_prelog_module need the method, but it was implemeted in http
modules ngx_http_log_module. A hack way is upgrade the method into a common
function.