Filip,

I use JettyLauncher (using JettyPlus) in Eclipse for development, and I have
a log4j.properties (that is being respected) located at the base of my
resources directory (so effectively /WEB-INF/classes/).

Actually, I spoke too soon.  It is respected for some parts of my app (like
Hibernate and Spring) but not for my basic pages and services.

Removing the log4j.jar from my Eclipse project's classpath worked.
Strangely, I have to include log4j.jar in my WEB-INF/lib if I'm deploying to
JBoss, but it's causing problems in Jetty.

There are some notes about possible problems when using log4j, or other
loggers, directly in applications:

http://jetty.mortbay.org/jetty5/tut/logging.html


Jonathan


> -----Original Message-----
> From: Filip S. Adamsen [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, February 05, 2008 4:06 PM
> To: Tapestry users
> Subject: Re: T5: How do I configure logging for a service?
> 
> Hi Jonathan,
> 
> I know about slf4j, I'm just using log4j as my framework of choice - for
> now.
> 
> Regarding app server... I'm actually just running this through Jetty
> (using the Maven plugin) right now, but will be deploying to Tomcat in
> production - it's not a big application.
> 
> -Filip
> 
> Jonathan Barker skrev:
> > Filip,
> >
> > Recent versions of T5 have used slf4j, not log4j.  Having said that, the
> > underlying logger is often log4j.
> >
> > What app server?
> >
> > JBoss, for example, has all logging configured through a log4j.xml file
> in
> > the server conf directory.
> >
> >
> > Jonathan
> >
> >
> >
> >> -----Original Message-----
> >> From: Filip S. Adamsen [mailto:[EMAIL PROTECTED]
> >> Sent: Tuesday, February 05, 2008 2:24 PM
> >> To: Tapestry users
> >> Subject: T5: How do I configure logging for a service?
> >>
> >> Hi,
> >>
> >> I'm having trouble configuring logging for my services. What exactly is
> >> the name of the logger handed to my service?
> >>
> >> I thought log4j.logger.com.myapp=debug in log4j.properties would turn
> on
> >> logging for all my services, but this doesn't seem to work.
> >> log4j.category.com.myapp=debug doesn't work either.
> >>
> >> I've checked the documentation but have been unable to find anything
> >> about this.
> >>
> >> -Filip
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to