logname implementation