Log hostname detection