Add uid cookie and rearrange log line.