Re: [Webwork-devel] loading log4j.properties
Brought to you by:
baldree,
rickardoberg
|
From: Matt B. <ma...@sm...> - 2002-01-09 01:02:26
|
I could see how a bare bones project structure would be helpful for newbies
to WW and web apps in general. What if we provided a bare bones sample
project that would be part of the "dist" target. So as part of the
distribution, this project structure would be built and moved under the
example folder; i.e., example/projects/webapp. Do you think this would work?
I guess one concern would be do we provide a sample bare bones project for
JSP, Velocity, etc. or do we let them work this out for themselves using the
examples and the documentation?
-Matt
----- Original Message -----
From: "Victor Salaman" <vsa...@ho...>
To: <ma...@sm...>; <web...@li...>
Sent: Monday, January 07, 2002 10:59 PM
Subject: Re: [Webwork-devel] loading log4j.properties
> Matt, that's great... Although my suggestion would be to create a "ant
> skeleton" target, that builds a bare-bones, no frills webwork dir
structure.
> A new user can take this structure and use it to build an app. Out of my
> evangelizing process, the biggest problem people have encountered is
setting
> up initially. By making a skeleton, that burden is removed.
>
> /V
>
>
> >From: "Matt Baldree" <ma...@sm...>
> >To: "Webwork-Developer" <web...@li...>
> >Subject: [Webwork-devel] loading log4j.properties
> >Date: Mon, 7 Jan 2002 19:40:40 -0600
> >
> >I was working on the JSP documentation and realized we need a
configuration
> >document to describe how to configure WW. I wrote this today and added it
> >to
> >CVS. One section in configuration talks about configuring WW's logger. I
> >think the developer should be able to substitute the default
> >log4j.properties under webwork/ with their own if they so choose. This
> >means
> >they could provide a log4j.properties under WEB-INF/classes that WW would
> >first check before loading its default under webwork/. This allows the
> >developer a clean log4j.properties substitution without having to
> >programmatically do it somewhere else. To allow this capability, I
propose
> >changing the ServletDispatcher as follows:
> >
> >84c84,92
> ><
>
>PropertyConfigurator.configure(classLoader.getResource("webwork/log4j.prope
r
> >ties"));
> >---
> > > try
> > > {
> > >
>
>PropertyConfigurator.configure(classLoader.getResource("log4j.properties"))
;
> > > log.info("Custom log4j property file loaded.");
> > > } catch (Exception e)
> > > {
> > >
>
>PropertyConfigurator.configure(classLoader.getResource("webwork/log4j.prope
r
> >ties"));
> > > log.info("Default log4j property file loaded.");
> > > }
> >
> >Thoughts?
> >
> >-Matt
> >
> >
> >
> >_______________________________________________
> >Webwork-devel mailing list
> >Web...@li...
> >https://lists.sourceforge.net/lists/listinfo/webwork-devel
>
>
>
>
> _________________________________________________________________
> Join the world's largest e-mail service with MSN Hotmail.
> http://www.hotmail.com
>
>
> _______________________________________________
> Webwork-devel mailing list
> Web...@li...
> https://lists.sourceforge.net/lists/listinfo/webwork-devel
>
>
|