MyEclipse Forums
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
dani@cb-phone.com
Post subject: change log systems and configurations in tomcat 5.09  PostPosted: Jul 29, 2005 - 05:32 AM



Joined: Jan 26, 2005
Posts: 2

how to change the loging level of component such as myfaces (who use commons-logging) in tomcat 5.09?

i have configrued a tomcat context to point to my webroot in the project, so i do not need to deploy; the code is the actual docBase, and i see everything in the console in eclipse.

now, i need to see the tracing of packages such as myfaces and shale and so tried to specify a propery file as a
Code:
-Djava.util.logging.config.file
system param on the tomcat 5 myeclipe application server jdk preferences tab, but i no longer see the console and no log file is created.

can you please give us detailed instructions for changing the log system and configurations.

TIA
 
 View user's profile Send private message  
Reply with quote Back to top
support-rkalla
Post subject:   PostPosted: Jul 29, 2005 - 05:40 PM
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23824

Dani,
IIRC commons-logging will honor the log configuration file you stick in your classpath, I don't think you should or need to mess with the -D option, instead make a log4j configuration file, stick it in the root of your /src folder and specify the logging granulatiry you want for your project or Tomcat. You'll get plenty of output.

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
dani@cb-phone.com
Post subject:   PostPosted: Jul 30, 2005 - 09:04 AM



Joined: Jan 26, 2005
Posts: 2

Thanks for your answer,

I managed to get some output but I also needed to add log4j to the classpath (e.g. webapp lib dir).

Can I also do it with the 1.4 logging and without log4j ?
 
 View user's profile Send private message  
Reply with quote Back to top
support-rkalla
Post subject:   PostPosted: Jul 30, 2005 - 04:57 PM
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23824

Sure, commons logging is an abstraction to either 1.4 logging or log4j, it doesn't do any logging by itself. If you want to use 1.4 logging, remove log4j from your classpath and add a 1.4 configuration file to your classpath as before. The reason I suggested log4j is because it is the preferred logger and it's easy to find examples for it.

But the 1.4 logger should be equally easy to find configs for.

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits