logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ceki Gülcü <c...@qos.ch>
Subject JMX support, call for volunteer(s).
Date Thu, 21 Feb 2002 05:57:50 GMT

Hi all,

As you might know, log4j 1.2 adds JMX support. This JMX code is not
finished but shows promise. I really had fun coding this. However, I
now would like to offer someone else an opportunity to continue the
work.  If you have a week or two to spare, and are looking for a nice
little but still high-impact project, look no further.

Let me know if you are interested. Regards, Ceki

ps: If you would like to play around with existing JMX support, read
the attached note below.

>Delivered-To: cgu@qos.ch
>Mailing-List: contact log4j-user-help@jakarta.apache.org; run by ezmlm
>List-Unsubscribe: <mailto:log4j-user-unsubscribe@jakarta.apache.org>
>List-Subscribe: <mailto:log4j-user-subscribe@jakarta.apache.org>
>List-Help: <mailto:log4j-user-help@jakarta.apache.org>
>List-Post: <mailto:log4j-user@jakarta.apache.org>
>List-Id: "Log4J Users List" <log4j-user.jakarta.apache.org>
>Reply-To: "Log4J Users List" <log4j-user@jakarta.apache.org>
>Delivered-To: mailing list log4j-user@jakarta.apache.org
>X-Sender: cgu@mail.qos.ch
>X-Mailer: QUALCOMM Windows Eudora Version 5.1
>Date: Thu, 21 Feb 2002 06:33:46 +0100
>To: "Log4J Users List" <log4j-user@jakarta.apache.org>
>From: Ceki Gülcü <ceki@qos.ch>
>Subject: Re: JMX support in 1.2beta3
>X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N
>The following is messy, but just to give you an idea of the flavor of
>the beast.
>1) Put /java/jmx/lib/jmxri.jar
>     /java/jmx/lib/jmxtools.jar
>     /jakarta-log4j-1.2beta3/src/java
>     /jakarta-log4j-1.2beta3/dist/classes
>into your classpath, changing directory names according to your
>2) cd /jakarta-log4j-1.2beta3/src/java/org/apache/log4j/jmx
>3) javac T.java
>Do not skip step 3 even if the file T.class is already in the distrib.
>4) java T
>You'll see output similar to
>0 INFO [main] org.apache.log4j.jmx.Agent - Registering HtmlAdaptorServer 
>0 INFO [main] org.apache.log4j.jmx.Agent - Registering 
>HierarchyDynamicMBean instance.
>10 DEBUG [main] org.apache.log4j.jmx.HierarchyDynamicMBean - preRegister 
>called. Server=com.sun.management.jmx.MBeanServerImpl@67e
>89, name=log4j:hiearchy=default
>10 DEBUG [main] org.apache.log4j.jmx.HierarchyDynamicMBean - postRegister 
>is called.
>20 DEBUG [main] root - preRegister called. 
>Server=com.sun.management.jmx.MBeanServerImpl@67e89, name=log4j:logger=root
>20 DEBUG [main] org.apache.log4j.jmx.LoggerDynamicMBean - Adding 
>AppenderMBean for appender named console
>40 DEBUG [main] org.apache.log4j.jmx.AppenderDynamicMBean - preRegister 
>called. Server=com.sun.management.jmx.MBeanServerImpl@67e8
>9, name=log4j:appender=console
>40 DEBUG [main] org.apache.log4j.jmx.AppenderDynamicMBean - Adding 
>50 DEBUG [main] org.apache.log4j.jmx.LayoutDynamicMBean - preRegister 
>called. Server=com.sun.management.jmx.MBeanServerImpl@67e89,
>  name=log4j:appender=console,layout=org.apache.log4j.PatternLayout
>50 DEBUG [main] org.apache.log4j.jmx.LayoutDynamicMBean - getMBeanInfo called.
>50 DEBUG [main] org.apache.log4j.jmx.AppenderDynamicMBean - getMBeanInfo 
>50 DEBUG [main] org.apache.log4j.jmx.HierarchyDynamicMBean - ---Adding 
>logger [root] as listener.
>5) View http://localhost:8082/ with your browser. Do not stop or kill 
>"java T".
>6) Play around. You can add new appenders to categories, view and 
>configure appenders, add layouts...
>JMX support is not production quality but the ideas are there. The 
>existing code needs polishing...
>Any volunteers? Regards, Ceki
>At 16:57 20.02.2002 -0800, Charlie Cano wrote:
>>I have to say that the idea of JMX support for the logging service of 
>>Log4J is very exciting - is there any current documentation about what 
>>the general layout of MBeans are and how they should be used to 
>>configure/access the log4j system?  I'm poking around the 1.2 API docs, 
>>but it's a little tricky to figure out the intention of each MBean in 
>>terms of controlling the log4j backend...

To unsubscribe, e-mail:   <mailto:log4j-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:log4j-dev-help@jakarta.apache.org>

View raw message