RE: Using log4J and getting rid of default logs in Tomcat 6
As it turns out, getting rid of the old logging.properties file I had solved the problem. However, how I am not sure I am getting all the information used to be. Looking at some other examples, this seems to be the list of loggers to define. Is this correct? log4j.rootLogger=INFO, ROOT log4j.logger.org.apache.catalina=INFO, CATALINA log4j.logger.org.apache.catalina.core=INFO, CORE log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina].[localhost]=I NFO, LOCALHOST log4j.logger.org.apache.catalina.session=INFO, SESSION Can syntax like in the logging.properties be used as well: [/host-manager] = like: log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina].[localhost]=I NFO, MANAGER Thanks, Mark -Original Message- From: Mark Claassen [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 12, 2007 11:31 AM To: 'Tomcat Users List' Subject: Using log4J and getting rid of default logs in Tomcat 6 I would like to have all my logging go through log4J and not have the default XXX.date.log files created. Is there a way to do this? I got log4j working, as it says in the docs, but the localhost.date.log is still created and written to. From what I understand, I will need to put a log4j.properties in the admin and manager webapps to get these to go away, but I am not sure what to put in them. Has anyone done this? Is there a good on-line resource I can check? The logs I would like to get rid of, and replace with log4J managed logs are: 0 Jun 12 11:19 admin.2007-06-12.log 1585 Jun 12 11:20 catalina.2007-06-12.log 0 Jun 12 11:19 host-manager.2007-06-12.log 736 Jun 12 11:20 localhost.2007-06-12.log 0 Jun 12 11:19 manager.2007-06-12.log Thanks, Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using log4J and getting rid of default logs in Tomcat 6
See the note at the top of http://tomcat.apache.org/tomcat-6.0-doc/logging.html. By default, TC 6 only uses Juli for it's internal logging. Mark Claassen [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] As it turns out, getting rid of the old logging.properties file I had solved the problem. However, how I am not sure I am getting all the information used to be. Looking at some other examples, this seems to be the list of loggers to define. Is this correct? log4j.rootLogger=INFO, ROOT log4j.logger.org.apache.catalina=INFO, CATALINA log4j.logger.org.apache.catalina.core=INFO, CORE log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina].[localhost]=I NFO, LOCALHOST log4j.logger.org.apache.catalina.session=INFO, SESSION Can syntax like in the logging.properties be used as well: [/host-manager] = like: log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina].[localhost]=I NFO, MANAGER Thanks, Mark -Original Message- From: Mark Claassen [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 12, 2007 11:31 AM To: 'Tomcat Users List' Subject: Using log4J and getting rid of default logs in Tomcat 6 I would like to have all my logging go through log4J and not have the default XXX.date.log files created. Is there a way to do this? I got log4j working, as it says in the docs, but the localhost.date.log is still created and written to. From what I understand, I will need to put a log4j.properties in the admin and manager webapps to get these to go away, but I am not sure what to put in them. Has anyone done this? Is there a good on-line resource I can check? The logs I would like to get rid of, and replace with log4J managed logs are: 0 Jun 12 11:19 admin.2007-06-12.log 1585 Jun 12 11:20 catalina.2007-06-12.log 0 Jun 12 11:19 host-manager.2007-06-12.log 736 Jun 12 11:20 localhost.2007-06-12.log 0 Jun 12 11:19 manager.2007-06-12.log Thanks, Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Using log4J and getting rid of default logs in Tomcat 6
Thanks for the reply. I did get some logging to work already, so I am assuming that I have it configured correctly. I did the compile of the extras and log4j 1.2. By removing the logging.properties, I got rid of the default logs, but I am not getting all the same output. I interpreted the documentation as saying that I can use log4J as long as I compile the extras. Are you saying that this still gives an incomplete picture? Mark -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Barker Sent: Tuesday, June 12, 2007 9:42 PM To: users@tomcat.apache.org Subject: Re: Using log4J and getting rid of default logs in Tomcat 6 See the note at the top of http://tomcat.apache.org/tomcat-6.0-doc/logging.html. By default, TC 6 only uses Juli for it's internal logging. Mark Claassen [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] As it turns out, getting rid of the old logging.properties file I had solved the problem. However, how I am not sure I am getting all the information used to be. Looking at some other examples, this seems to be the list of loggers to define. Is this correct? log4j.rootLogger=INFO, ROOT log4j.logger.org.apache.catalina=INFO, CATALINA log4j.logger.org.apache.catalina.core=INFO, CORE log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina].[localh ost]=I NFO, LOCALHOST log4j.logger.org.apache.catalina.session=INFO, SESSION Can syntax like in the logging.properties be used as well: [/host-manager] = like: log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina].[localh ost]=I NFO, MANAGER Thanks, Mark -Original Message- From: Mark Claassen [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 12, 2007 11:31 AM To: 'Tomcat Users List' Subject: Using log4J and getting rid of default logs in Tomcat 6 I would like to have all my logging go through log4J and not have the default XXX.date.log files created. Is there a way to do this? I got log4j working, as it says in the docs, but the localhost.date.log is still created and written to. From what I understand, I will need to put a log4j.properties in the admin and manager webapps to get these to go away, but I am not sure what to put in them. Has anyone done this? Is there a good on-line resource I can check? The logs I would like to get rid of, and replace with log4J managed logs are: 0 Jun 12 11:19 admin.2007-06-12.log 1585 Jun 12 11:20 catalina.2007-06-12.log 0 Jun 12 11:19 host-manager.2007-06-12.log 736 Jun 12 11:20 localhost.2007-06-12.log 0 Jun 12 11:19 manager.2007-06-12.log Thanks, Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using log4J and getting rid of default logs in Tomcat 6
Mark Claassen [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Thanks for the reply. I did get some logging to work already, so I am assuming that I have it configured correctly. I did the compile of the extras and log4j 1.2. By removing the logging.properties, I got rid of the default logs, but I am not getting all the same output. I interpreted the documentation as saying that I can use log4J as long as I compile the extras. Are you saying that this still gives an incomplete picture? I agree that the instructions are a bit sparse. Did you actually replace $CATALINA_HOME/bin/tomcat-juli.jar with the one built in extras? Mark -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Barker Sent: Tuesday, June 12, 2007 9:42 PM To: users@tomcat.apache.org Subject: Re: Using log4J and getting rid of default logs in Tomcat 6 See the note at the top of http://tomcat.apache.org/tomcat-6.0-doc/logging.html. By default, TC 6 only uses Juli for it's internal logging. Mark Claassen [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] As it turns out, getting rid of the old logging.properties file I had solved the problem. However, how I am not sure I am getting all the information used to be. Looking at some other examples, this seems to be the list of loggers to define. Is this correct? log4j.rootLogger=INFO, ROOT log4j.logger.org.apache.catalina=INFO, CATALINA log4j.logger.org.apache.catalina.core=INFO, CORE log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina].[localh ost]=I NFO, LOCALHOST log4j.logger.org.apache.catalina.session=INFO, SESSION Can syntax like in the logging.properties be used as well: [/host-manager] = like: log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina].[localh ost]=I NFO, MANAGER Thanks, Mark -Original Message- From: Mark Claassen [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 12, 2007 11:31 AM To: 'Tomcat Users List' Subject: Using log4J and getting rid of default logs in Tomcat 6 I would like to have all my logging go through log4J and not have the default XXX.date.log files created. Is there a way to do this? I got log4j working, as it says in the docs, but the localhost.date.log is still created and written to. From what I understand, I will need to put a log4j.properties in the admin and manager webapps to get these to go away, but I am not sure what to put in them. Has anyone done this? Is there a good on-line resource I can check? The logs I would like to get rid of, and replace with log4J managed logs are: 0 Jun 12 11:19 admin.2007-06-12.log 1585 Jun 12 11:20 catalina.2007-06-12.log 0 Jun 12 11:19 host-manager.2007-06-12.log 736 Jun 12 11:20 localhost.2007-06-12.log 0 Jun 12 11:19 manager.2007-06-12.log Thanks, Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Using log4J and getting rid of default logs in Tomcat 6
Yep. And, as I said, it is working to some degree. I just want to get info from the other canned webapps in there. As well as have some certainty that I am getting what I am supposed to. -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Barker Sent: Tuesday, June 12, 2007 10:47 PM To: users@tomcat.apache.org Subject: Re: Using log4J and getting rid of default logs in Tomcat 6 Mark Claassen [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Thanks for the reply. I did get some logging to work already, so I am assuming that I have it configured correctly. I did the compile of the extras and log4j 1.2. By removing the logging.properties, I got rid of the default logs, but I am not getting all the same output. I interpreted the documentation as saying that I can use log4J as long as I compile the extras. Are you saying that this still gives an incomplete picture? I agree that the instructions are a bit sparse. Did you actually replace $CATALINA_HOME/bin/tomcat-juli.jar with the one built in extras? Mark -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Barker Sent: Tuesday, June 12, 2007 9:42 PM To: users@tomcat.apache.org Subject: Re: Using log4J and getting rid of default logs in Tomcat 6 See the note at the top of http://tomcat.apache.org/tomcat-6.0-doc/logging.html. By default, TC 6 only uses Juli for it's internal logging. Mark Claassen [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] As it turns out, getting rid of the old logging.properties file I had solved the problem. However, how I am not sure I am getting all the information used to be. Looking at some other examples, this seems to be the list of loggers to define. Is this correct? log4j.rootLogger=INFO, ROOT log4j.logger.org.apache.catalina=INFO, CATALINA log4j.logger.org.apache.catalina.core=INFO, CORE log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina].[local h ost]=I NFO, LOCALHOST log4j.logger.org.apache.catalina.session=INFO, SESSION Can syntax like in the logging.properties be used as well: [/host-manager] = like: log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina].[local h ost]=I NFO, MANAGER Thanks, Mark -Original Message- From: Mark Claassen [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 12, 2007 11:31 AM To: 'Tomcat Users List' Subject: Using log4J and getting rid of default logs in Tomcat 6 I would like to have all my logging go through log4J and not have the default XXX.date.log files created. Is there a way to do this? I got log4j working, as it says in the docs, but the localhost.date.log is still created and written to. From what I understand, I will need to put a log4j.properties in the admin and manager webapps to get these to go away, but I am not sure what to put in them. Has anyone done this? Is there a good on-line resource I can check? The logs I would like to get rid of, and replace with log4J managed logs are: 0 Jun 12 11:19 admin.2007-06-12.log 1585 Jun 12 11:20 catalina.2007-06-12.log 0 Jun 12 11:19 host-manager.2007-06-12.log 736 Jun 12 11:20 localhost.2007-06-12.log 0 Jun 12 11:19 manager.2007-06-12.log Thanks, Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]