Automatic hostname detection for log output.