* 1 - User ID
* 2 - IP
* 3 - Virtualhost
* 4 - Channel ID
*/
AMQConnectionModel connection = session.getConnectionModel();
setLogStringWithFormat(CHANNEL_FORMAT,
connection == null ? -1L : connection.getConnectionId(),
(connection == null || connection.getPrincipalAsString() == null) ? "?" : connection.getPrincipalAsString(),
(connection == null || connection.getRemoteAddressString() == null) ? "?" : connection.getRemoteAddressString(),
(connection == null || connection.getVirtualHostName() == null) ? "?" : connection.getVirtualHostName(),
session.getChannelId());
}