Code example for Logger

Methods: warning

0
 
      ServletContext appContext = getServletConfig().getServletContext();
      ChannelService channelService = ChannelServiceFactory.getChannelService();
      ChannelPresence presence = channelService.parsePresence(req);
 
      log.warning("Inside channel_presence handler");
      String status = (presence.isConnected())?"connected":"disconnected";
      log.warning(presence.clientId() + " is currently = " + status); 
 
      if ( presence.isConnected() == false )
      { 
        ChannelHelper.removeFromAppList(appContext, presence.clientId());
      } 
 
      log.warning("Listener's job completed...");
} 
}