logs request and response header

#Modifications:
1. Logs request and response header
2. Log automatically scrolls down to latest log