setup logging for req and res