private static void logSession(final Session session){
  final TransportStrategy transportStrategy=TransportStrategy.findStrategyForSession(session);
  final Properties properties=session.getProperties();
  final String sessionDetails=(transportStrategy != null) ? transportStrategy.toString(properties) : properties.toString();
  LOGGER.debug("starting mail with " + sessionDetails);
}

private static void logSession ( final Session session ) { final TransportStrategy transportStrategy = TransportStrategy . findStrategyForSession ( session ) ; final Properties properties = session . getProperties ( ) ; final String sessionDetails = ( transportStrategy != null ) ? transportStrategy . toString ( properties ) : properties . toString ( ) ; LOGGER . debug ( "starting mail with " + sessionDetails ) ; }
simply logs host details , credentials used and whether authentication will take place and finally the transport protocol used .
