Middleware Changes

1) adding TimeStamp to b_process_request_detail's start_time variable.
2) writing log files properly