@Override protected String constructDefaultLoggingPrefix(ConfigBag execFlags) { String hostname = getAddress().getHostName(); Integer port = execFlags.peek(SshTool.PROP_PORT); if (port == null) port = getConfig(ConfigUtils.prefixedKey(SshTool.BROOKLYN_CONFIG_KEY_PREFIX, SshTool.PROP_PORT)); if (port == null) port = getConfig(ConfigUtils.prefixedKey(SSHCONFIG_PREFIX, SshTool.PROP_PORT)); return (user != null ? user+"@" : "") + hostname + (port != null ? ":"+port : ""); } @Override