Package mx4j.log

Examples of mx4j.log.Logger.debug()


            HttpCommandProcessor processor = (HttpCommandProcessor)i.next();
            processor.setMBeanServer(server);
            processor.setDocumentBuilder(builder);
         }

         if (logger.isEnabledFor(Logger.DEBUG)) logger.debug("HttpAdaptor server listening on port " + port);
         alive = true;
         Thread serverThread = new Thread(new Runnable()
         {
            public void run()
            {
View Full Code Here


   public void handleNotification(Notification notification, Object handback)
   {
      if (notificationName != null && !notification.getType().equals(notificationName)) return;

      Logger log = getLogger();
      log.debug("Notification " + notification + " hit, sending message");
      sendMail();
   }

   private Logger getLogger()
   {
View Full Code Here

                     {
                        transport.connect();
                     }
                     message.saveChanges();

                     if (logger.isEnabledFor(Logger.DEBUG)) logger.debug("Sending message");
                     transport.sendMessage(message, message.getAllRecipients());
                     transport.close();
                     if (logger.isEnabledFor(Logger.DEBUG)) logger.debug("Message sent");
                  }
                  catch (Exception e)
View Full Code Here

                     message.saveChanges();

                     if (logger.isEnabledFor(Logger.DEBUG)) logger.debug("Sending message");
                     transport.sendMessage(message, message.getAllRecipients());
                     transport.close();
                     if (logger.isEnabledFor(Logger.DEBUG)) logger.debug("Message sent");
                  }
                  catch (Exception e)
                  {
                     logger.error("Exception during message sending ", e);
                  }
View Full Code Here

            httpIn.readRequest();

            // Find a suitable command processor
            String path = httpIn.getPath();
            String queryString = httpIn.getQueryString();
            if (log.isEnabledFor(Logger.DEBUG)) log.debug("Request " + path + ((queryString == null) ? "" : ("?" + queryString)));
            String postPath = preProcess(path);
            if (!postPath.equals(path))
            {
               if (log.isEnabledFor(Logger.DEBUG)) log.debug("Processor replaced path " + path + " with the path " + postPath);
               path = postPath;
View Full Code Here

            String queryString = httpIn.getQueryString();
            if (log.isEnabledFor(Logger.DEBUG)) log.debug("Request " + path + ((queryString == null) ? "" : ("?" + queryString)));
            String postPath = preProcess(path);
            if (!postPath.equals(path))
            {
               if (log.isEnabledFor(Logger.DEBUG)) log.debug("Processor replaced path " + path + " with the path " + postPath);
               path = postPath;
            }
            OutputStream out = client.getOutputStream();
            httpOut = new HttpOutputStream(out, httpIn);
            if (!handleAuthentication(httpIn, httpOut))
View Full Code Here

               return;
            }
            HttpCommandProcessor processor = getProcessor(path.substring(1, path.length()));
            if (processor == null)
            {
               if (log.isEnabledFor(Logger.DEBUG)) log.debug("No suitable command processor found, requesting from processor path " + path);
               findUnknownElement(path, httpOut, httpIn);
            }
            else
            {
               Document document = processor.executeRequest(httpIn);
View Full Code Here

   public void start()
   {
      Logger logger = getLogger();
      if (!isActive)
      {
         if (logger.isEnabledFor(Logger.DEBUG)) logger.debug("Starting statistics recorder " + this);
         this.isActive = true;
         recordingStart = new Date();
         entries.clear();
         minimumValue = maximumValue = averageValue = 0;
         count = 0;
View Full Code Here

   public void stop()
   {
      Logger logger = getLogger();
      if (isActive)
      {
         if (logger.isEnabledFor(Logger.DEBUG)) logger.debug("Starting statistics recorder " + this);
         this.isActive = false;
         try
         {
            doStop();
         }
View Full Code Here

            return;
         }

         if (processorClass != null && processorName != null)
         {
            if (logger.isEnabledFor(Logger.DEBUG)) logger.debug("Building processor class of type " + processorClass + " and name " + processorName);
            try
            {
               server.createMBean(processorClass, processorName, null);
            }
            catch (JMException e)
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.