I would expect LOGNAME to be 'root' under sudo. 
I see that on ubuntu and centos.