You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Martin Dulisch <md...@web.de> on 2005/03/17 22:39:12 UTC
[J2] Logging in portlets
Hello,
what is the recommendet way for logging in portlets?
I added a new category and file appender to the log4j.properties in
(jetspeed-webapp-dir)/WEB-INF/conf. The log file is created but it is
empty. The level is set to debug. I noticed that the logfiles from the
example portlets are also empty (e.g. sutruts).
How can I use logging in my portlet? Does jetspeed 2 use log4j?
I am using the current cvs version with tomcat 5.0.30.
Thanks, Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
Re: [J2] Logging in portlets
Posted by Martin Dulisch <md...@web.de>.
Thanks for your answer Thomas,
I have some additional questions:
- do you have a seperate log4j.properties file in web-inf/classes of
your portlet or is it the file from jetspeed/conf
- are you using log4j logger in your class or commons-logging
Thanks, Martin
Thomas.Koch@nepatec.de wrote:
> hi !
> my logging with log4j and tomcat 5.0.28 and cvs-version from 2.5 weeks
> works fine.
> the property is in webinf/classes and the log is on desktop, because i'am
> starting tomcat from this point.
>
> thomas
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
Re: [J2] Logging in portlets
Posted by Th...@nepatec.de.
hi !
my logging with log4j and tomcat 5.0.28 and cvs-version from 2.5 weeks
works fine.
the property is in webinf/classes and the log is on desktop, because i'am
starting tomcat from this point.
thomas