Re: Logging makes a grown man cry

2013-12-23 Thread Tomcat Random
Sorry if resurrecting the dead is frowned upon here but I thought I would just add my resolve to this. Honestly, after writing a lot of code otherwise, logging was probably the most frustrating. Tomcat 7.0.42, RHEL 6 1. SL4FJ with Logback works beautifully. 2. I have custom error pages in web.xm

RE: Logging makes a grown man cry

2013-12-04 Thread Dale Ogilvie
Alec: "That seems like a good solution. Are you able to avoid having a single giant catalina.out file in $CATALINA_HOME/logs?" No, we find we can live with that but we try to minimise writes to stdout etc. From Chris's note it seems like the ideal solution for us would be 1. server log4j isolat

RE: Logging makes a grown man cry

2013-12-04 Thread Dale Ogilvie
>> Dale wrote: >> We found issues with trying to have log4j in catalina/lib. >> >> That said, it would be nice to use log4j for tomcat, however we found >> that the two configurations collided in our slf4j setup. >You can do this if you put log4j.jar into a server-only ClassLoader. >That's not c

Re: Logging makes a grown man cry

2013-12-04 Thread Tomcat Random
Chris, "The examples don't meet your needs exactly? Well, I'm sure we're all terribly sorry about that." Heh...Sorry, I was responding to Konstantin's comment and mine crossed over just before your long and helpful reply. Thanks, as always, Alec On Wed, Dec 4, 2013 at 12:39 PM, Christopher Sc

Re: Logging makes a grown man cry

2013-12-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Dale, On 12/3/13, 11:01 PM, Dale Ogilvie wrote: > Currently we use tomcat configured as out-of-the-box for logging > (no log4j) and log4j.jar and config in the app war file. > > We found issues with trying to have log4j in catalina/lib. > > That s

Re: Logging makes a grown man cry

2013-12-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Alec, On 12/4/13, 11:31 AM, Tomcat Random wrote: > I'd argue that dealing with logging configuration is not newbie > stuff. This is probably some of the most poorly implemented > technology in the servlet container. What about the implementation is

Re: Logging makes a grown man cry

2013-12-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Alec, On 12/3/13, 1:12 PM, Tomcat Random wrote: > I'm trying to implement log4j as per the instructions here > (skipping step 5): > http://tomcat.apache.org/tomcat-7.0-doc/logging.html#Using_Log4j > > Since I'm not using the Manager, I've removed

Re: Logging makes a grown man cry

2013-12-04 Thread Tomcat Random
I'd argue that dealing with logging configuration is not newbie stuff. This is probably some of the most poorly implemented technology in the servlet container. On Tue, Dec 3, 2013 at 3:44 PM, Konstantin Kolinko wrote: > 2013/12/3 Tomcat Random : > > Environment is RHEL6, Tomcat 7.0.42. There is

Re: Logging makes a grown man cry

2013-12-04 Thread Tomcat Random
ilto:tomcat.ran...@gmail.com] > Sent: Wednesday, 4 December 2013 7:12 a.m. > To: Tomcat Users List > Subject: Logging makes a grown man cry > > So, all I want is to have: > > 1. one log file that rolls daily (a new file each day), with the date > appended, that catches my ow

RE: Logging makes a grown man cry

2013-12-03 Thread Dale Ogilvie
slf4j setup. Dale -Original Message- From: Tomcat Random [mailto:tomcat.ran...@gmail.com] Sent: Wednesday, 4 December 2013 7:12 a.m. To: Tomcat Users List Subject: Logging makes a grown man cry So, all I want is to have: 1. one log file that rolls daily (a new file each day), with the

Re: Logging makes a grown man cry

2013-12-03 Thread Konstantin Kolinko
2013/12/3 Tomcat Random : > Environment is RHEL6, Tomcat 7.0.42. There is only one webapp. > > I'm trying to implement log4j as per the instructions here (skipping step > 5): > http://tomcat.apache.org/tomcat-7.0-doc/logging.html#Using_Log4j > > Since I'm not using the Manager, I've removed the rel

Logging makes a grown man cry

2013-12-03 Thread Tomcat Random
Environment is RHEL6, Tomcat 7.0.42. There is only one webapp. I'm trying to implement log4j as per the instructions here (skipping step 5): http://tomcat.apache.org/tomcat-7.0-doc/logging.html#Using_Log4j Since I'm not using the Manager, I've removed the relevant logging lines from CATALINA_HOME