Log to file and change log format to include useragent