facebook

change log systems and configurations in tomcat 5.09

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse Archived
  2.  > 
  3. Application Servers and Deployment
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #233876 Reply

    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

    -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

    #233927

    Riyad Kalla
    Member

    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.

    #233972

    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 ?

    #233975

    Riyad Kalla
    Member

    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.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: change log systems and configurations in tomcat 5.09

You must be logged in to post in the forum log in