You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Thomas Termin (JIRA)" <ji...@apache.org> on 2007/01/12 16:01:48 UTC

[jira] Created: (SM-817) log4j service for changing log levels at runtime

log4j service for changing log levels at  runtime
-------------------------------------------------

                 Key: SM-817
                 URL: https://issues.apache.org/activemq/browse/SM-817
             Project: ServiceMix
          Issue Type: New Feature
          Components: servicemix-core
            Reporter: Thomas Termin
         Attachments: logging_service.patch

This patch add a new MBean service to reconfigure the log4j system at runtime. The default is a scheduler which looks in a configurable time for changes in the log4j.xml file and reconfigures the system if something has changed and of course if the file is available. 

The service could be extended to read also a property file and reconfigure the system as well as to set one or more specific log levels via JMX console. I wouldn't need that...!

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/activemq/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Resolved: (SM-817) log4j service for changing log levels at runtime

Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/SM-817?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Guillaume Nodet resolved SM-817.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 3.1
         Assignee: Guillaume Nodet

I have made one modification to the patch (in the LogTask#reconfigure method) to avoid
a file descriptor leak (the file was kept open and it prevent edition on windows).
I have also reformated and added ASF header.
Thx a lot :-)

Author: gnodet
Date: Fri Jan 12 07:43:02 2007
New Revision: 495611

URL: http://svn.apache.org/viewvc?view=rev&rev=495611
Log:
SM-817: log4j service for changing log levels at runtime
Patch provided by Thomas Termin, thx a lot !

Added:
   incubator/servicemix/trunk/core/servicemix-core/src/main/java/org/apache/servicemix/jbi/logging/
   incubator/servicemix/trunk/core/servicemix-core/src/main/java/org/apache/servicemix/jbi/logging/LogService.java   (with props)
   incubator/servicemix/trunk/core/servicemix-core/src/main/java/org/apache/servicemix/jbi/logging/LogServiceMBean.java   (with props)
   incubator/servicemix/trunk/core/servicemix-core/src/main/java/org/apache/servicemix/jbi/logging/LogTask.java   (with props)
Modified:
   incubator/servicemix/trunk/core/servicemix-core/pom.xml
   incubator/servicemix/trunk/distributions/apache-servicemix/src/main/release/conf/servicemix.xml


> log4j service for changing log levels at  runtime
> -------------------------------------------------
>
>                 Key: SM-817
>                 URL: https://issues.apache.org/activemq/browse/SM-817
>             Project: ServiceMix
>          Issue Type: New Feature
>          Components: servicemix-core
>            Reporter: Thomas Termin
>         Assigned To: Guillaume Nodet
>             Fix For: 3.1
>
>         Attachments: logging_service.patch
>
>
> This patch add a new MBean service to reconfigure the log4j system at runtime. The default is a scheduler which looks in a configurable time for changes in the log4j.xml file and reconfigures the system if something has changed and of course if the file is available. 
> The service could be extended to read also a property file and reconfigure the system as well as to set one or more specific log levels via JMX console. I wouldn't need that...!

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/activemq/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira