roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Johnson (JIRA)" <nore...@atlassian.com>
Subject [Roller-JIRA] Created: (ROL-1491) Make log4j configurable via roller-custom.properties
Date Mon, 23 Jul 2007 16:27:31 GMT
Make log4j configurable via roller-custom.properties
----------------------------------------------------

                 Key: ROL-1491
                 URL: http://opensource.atlassian.com/projects/roller/browse/ROL-1491
             Project: Roller
          Issue Type: Improvement
          Components: Configuration & Settings
            Reporter: David Johnson
            Assignee: Roller Unassigned
             Fix For: 4.0


With 4.0 we are almost able to configure Roller entirely without modifying the contents of
the Roller WAR, but there is one significant "hole" and that is log4j.properties.

First, we've got the string ${catalina.home} hardcoded into log4j.properties. Log4j expands
that using the catalina.home system property, but that is not available on other app servers.
To change that you have to bust open the WAR and modify log4.properties.

Second, if a users needs to adjust logging levels they also have to bust open the WAR.

We can solve these problems very easily by adding the Log4j properties to roller.properties.
That way, folks can use roller-custom.properties to configure Log4j. At startup time we pull
the Log4j from RollerConfig (so they get the roller-custom.properties override values) and
then feed them to Log4j PropertiesConfigurator.configure() method.

   http://logging.apache.org/log4j/docs/api/org/apache/log4j/PropertyConfigurator.html


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

        

Mime
View raw message