All of these statements seem reasonable active and uncommented at the debug
level. They're unlikely to really clutter the log file(s) as they only run
at startup.
On 24 Dec 2002 [EMAIL PROTECTED] wrote:
> henning 2002/12/23 16:15:45
>
> Modified: src/java/org/apache/turbine Turbine.java
> Log:
> Added some debugging around the loading of the Log4j.properties file
>
> Revision Changes Path
> 1.24 +8 -1 jakarta-turbine-2/src/java/org/apache/turbine/Turbine.java
>
> Index: Turbine.java
> ===================================================================
> RCS file: /home/cvs/jakarta-turbine-2/src/java/org/apache/turbine/Turbine.java,v
> retrieving revision 1.23
> retrieving revision 1.24
> diff -u -r1.23 -r1.24
> --- Turbine.java 20 Dec 2002 00:14:17 -0000 1.23
> +++ Turbine.java 24 Dec 2002 00:15:44 -0000 1.24
> @@ -272,10 +272,13 @@
> APPLICATION_ROOT_DEFAULT);
>
> webappRoot = config.getServletContext().getRealPath("/");
> + // log.info("Web Application root is " + webappRoot);
> + // log.info("Application root is " + applicationRoot);
>
> if (applicationRoot == null || applicationRoot.equals(WEB_CONTEXT))
> {
> applicationRoot = webappRoot;
> + // log.info("got empty or 'webContext' Application root. Application
>root now: " + applicationRoot);
> }
>
> // Set the applicationRoot for this webapp.
> @@ -297,6 +300,8 @@
>
> String propsPath = getRealPath(propsFile);
>
> + // log.info("Loading Configuration from " + propsPath);
> +
> // This should eventually be a Configuration
> // interface so that service and app configuration
> // can be stored anywhere.
> @@ -307,6 +312,8 @@
> LOG4J_CONFIG_FILE_DEFAULT);
>
> log4jFile = getRealPath(log4jFile);
> +
> + log.debug("Loading Log4J configuration from " + log4jFile);
>
> //
> // Load the config file above into a Properties object and
>
>
>
>
> --
> To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>