Package mx4j.log

Examples of mx4j.log.Logger.info()


         });
      }
      catch (Throwable x)
      {
         Logger logger = Log.getLogger(LOGGER_CATEGORY);
         if (logger.isEnabledFor(Logger.INFO)) logger.info("Cannot create on-the-fly MBeanInvoker class, going with reflection MBeanInvoker", x);
         return new CachingReflectionMBeanInvoker();
      }
   }

   private static org.apache.bcel.classfile.Method createInvokeImpl(MBeanMetaData metadata, ClassGen classGen, String clsName)
View Full Code Here


   protected Object invokeImpl(MBeanMetaData metadata, String method, String[] signature, Object[] args) throws Throwable
   {
      Logger logger = getLogger();
      if (logger.isEnabledFor(Logger.INFO))
      {
         logger.info("BCEL invocation failed for method " + method + "" + Arrays.asList(signature) + ", using reflection");
      }
      return super.invokeImpl(metadata, method, signature, args);
   }

   private static class BCELClassLoader extends SecureClassLoader
View Full Code Here

   {
      Logger logger = getLogger();
      if (!registrationDone.booleanValue())
      {
         server = null;
         if (logger.isEnabledFor(Logger.INFO)) logger.info("MLet service " + objectName + " was not registered");
      }
      else
      {
         if (logger.isEnabledFor(Logger.TRACE)) logger.trace("MLet service " + objectName + " postRegistered successfully");
      }
View Full Code Here

               // If we're still running after waitFor() returns, means stop() has not been called
               // so the process has returned unexpectedly, we signal this by setting the exception
               if (isRunning())
               {
                  stop();
                  if (logger.isEnabledFor(Logger.INFO)) logger.info("Unexpected death of tnameserv process (maybe the port " + getPort() + " is already in use)");
                  exception = new IOException("Unexpected death of tnameserv process " + m_process);
               }
            }
            catch (InterruptedException x)
            {
View Full Code Here

            try
            {
               int read = -1;
               while ((read = m_stream.read(m_buffer)) >= 0)
               {
                  if (logger.isEnabledFor(Logger.INFO)) logger.info(new String(m_buffer, 0, read));
               }
            }
            catch (InterruptedIOException x)
            {
               Thread.currentThread().interrupt();
View Full Code Here

               Thread.currentThread().interrupt();
               break;
            }
            catch (IOException x)
            {
               if (logger.isEnabledFor(Logger.INFO)) logger.info("Error while consuming process stream", x);
               break;
            }
         }
      }
   }
View Full Code Here

         alive = true;
         Thread serverThread = new Thread(new Runnable()
         {
            public void run()
            {
               if (logger.isEnabledFor(Logger.INFO)) logger.info("HttpAdaptor version " + VERSION + " started on port " + port);

               startDate = new Date();
               requestsCount = 0;

               while (alive)
View Full Code Here

               {
                  logger.warn("Exception closing the server", e);
               }
               serverSocket = null;
               alive = false;
               if (logger.isEnabledFor(Logger.INFO)) logger.info("HttpAdaptor version " + VERSION + " stopped on port " + port);
            }
         });
         serverThread.start();
      }
      else
View Full Code Here

         });
         serverThread.start();
      }
      else
      {
         if (logger.isEnabledFor(Logger.INFO)) logger.info("Start failed, no server target server has been set");
      }
   }


   /**
 
View Full Code Here

// always close the socket
                  client.close();
               }
               catch (IOException e)
               {
                  log.info("Exception during socket close", 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.