RE: Tomcat logging with Log4j

2014-04-18 Thread Scott Bailey
: Tomcat logging with Log4j -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Scott, On 4/16/14, 10:15 AM, Scott Bailey wrote: I was able to get one of our developers and it was simple for them to add the logging for our app to the logback we are using a file and add logging rotation. My issue

Re: Tomcat logging with Log4j

2014-04-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Scott, On 4/16/14, 10:15 AM, Scott Bailey wrote: I was able to get one of our developers and it was simple for them to add the logging for our app to the logback we are using a file and add logging rotation. My issue is resolved. Thanks for the

RE: Tomcat logging with Log4j

2014-04-16 Thread Scott Bailey
: Tuesday, April 15, 2014 3:15 PM To: Tomcat Users List Subject: RE: Tomcat logging with Log4j Hello Christopher, What steps did you actually take? Steps on this site: http://mrhaki.blogspot.com/2011/02/configure-log4j-on-tomcat.html Downloaded new jars from extras for tomcat. tomcat-juli.jar

Tomcat logging with Log4j

2014-04-15 Thread Scott Bailey
Hi all, We need to add log rotation and log size management to tomcat 7. Tried converting to Log4j steps from tomcat website (http://tomcat.apache.org/tomcat-7.0-doc/logging.html) but did not work, was able to get it to work from

Re: Tomcat logging with Log4j

2014-04-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Scott, On 4/15/14, 2:50 PM, Scott Bailey wrote: We need to add log rotation and log size management to tomcat 7. Tried converting to Log4j steps from tomcat website (http://tomcat.apache.org/tomcat-7.0-doc/logging.html) but did not work, was

RE: Tomcat logging with Log4j

2014-04-15 Thread Scott Bailey
=com.donlen.common.utility.logging.DefaultAlignedLayout/ /encoder /appender Thanks! -Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Tuesday, April 15, 2014 2:22 PM To: Tomcat Users List Subject: Re: Tomcat logging with Log4j -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Scott, On 4/15

Re: Issues Logging wtith log4j at common and webapp levels

2012-12-03 Thread David Johle
for the clear question. While it was quite long, it was very readable, relevant and on point. That meant I got to the end rather than giving up after a few lines which is what usually happens with me and long questions. So in summary, I'm just trying to get shared libraries to have their log4j-based

Re: [OT] Issues Logging wtith log4j at common and webapp levels

2012-12-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, On 12/3/12 1:57 PM, David Johle wrote: Well I managed to accomplish my goal 100% with the help of some new features in Log4j 2.x (currently beta-3). Holy crap, the log4j folks are finally going to release an update. After the abortive

Re: Issues Logging wtith log4j at common and webapp levels

2012-12-03 Thread André Warnier
David Johle wrote: Well I managed to accomplish my goal 100% with the help of some new features in Log4j 2.x (currently beta-3). My eventual setup was to use the BasicContextSelector to ensure only a single logging heirarchy was created for the whole VM regardless of webapps. Then I tag

Issues Logging wtith log4j at common and webapp levels

2012-10-02 Thread David Johle
to the context itself, and used only by Tomcat. The only problem here is that it referenced some utility classes that were shared, and thus those still produced the log4j startup errors. So then I converted tomcat to use log4j for internal logging as well, which cleared up those errors, and made

Re: Issues Logging wtith log4j at common and webapp levels

2012-10-02 Thread Mark Thomas
trying to get shared libraries to have their log4j-based logging written to the webapp-specific log files of the calling webapp. Is this possible? If so, what's the trick? It can be done - with some caveats. Tomcat does this with Jasper. The short version is: - The loggers can not be static

Re: Logging with Log4J

2009-12-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bart, On 12/5/2009 7:55 AM, Bart Vandewoestyne wrote: log4j.appender.myAppender.File=testbart.log I would have done: log4j.appender.myAppender.File=/var/log/tomcat/mywebapp.log Make sure that the user running Tomcat has rights to write to that

Re: Logging with Log4J

2009-12-05 Thread Bart Vandewoestyne
On Fri, Dec 04, 2009 at 05:08:05PM -0500, Christopher Schultz wrote: [snip] log4j.rootLogger=DEBUG, cons See Jeffrey's suggestion in his post. OK. I changed that... and I'm working my way through the Log4J docs to better understand how it works...

Logging with Log4J

2009-12-04 Thread Bart Vandewoestyne
Hello list, Up until now, I have used simple System.out.println() statements to do the logging of my web applications, but I want to start using a more advanced system with more possibilities. Log4J seemed like a good choice. The most important thing for me is that the log messages are written

RE: Logging with Log4J

2009-12-04 Thread Jeffrey Janner
Change your first line from DEBUG, cons to DEBUG, myAppender -Original Message- From: Bart Vandewoestyne [mailto:bart.vandewoest...@telenet.be] Sent: Friday, December 04, 2009 9:03 AM To: users@tomcat.apache.org Subject: Logging with Log4J Hello list, Up until now, I have used simple

Re: Logging with Log4J

2009-12-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bart, On 12/4/2009 10:02 AM, Bart Vandewoestyne wrote: I *do* however see log messages appearing in /var/log/syslog, but that is not what i want. That's very weird: you have no configuration whatsoever that would lead me to believe that your

Tomcat Commons logging and log4j

2007-10-16 Thread Martyn Hiemstra
to why. I tried tomcat 5.028 and commons logging. I discovered that tomcat used it's own commons-logging-api.jar file and it was impossible to override this commons logging file. I am running tomcat 6 now and I have discovered that tomcat 6 uses commons logging without log4j enabled. I have

Re: Tomcat Commons logging and log4j

2007-10-16 Thread Pid
to override this commons logging file. commons-logging-api is not the same as commons-logging I am running tomcat 6 now and I have discovered that tomcat 6 uses commons logging without log4j enabled. log4j is 'enabled' when you configure it and supply the jar file. I have log4j.jar and commons

Re: Tomcat Commons logging and log4j

2007-10-16 Thread Martyn Hiemstra
-logging-api.jar file and it was impossible to override this commons logging file. commons-logging-api is not the same as commons-logging I am running tomcat 6 now and I have discovered that tomcat 6 uses commons logging without log4j enabled. log4j is 'enabled' when you configure

Re: Tomcat Commons logging and log4j

2007-10-16 Thread Pid
logging. I discovered that tomcat used it's own commons-logging-api.jar file and it was impossible to override this commons logging file. commons-logging-api is not the same as commons-logging I am running tomcat 6 now and I have discovered that tomcat 6 uses commons logging without log4j

Re: Tomcat Commons logging and log4j

2007-10-16 Thread Martyn Hiemstra
is not the same as commons-logging I am running tomcat 6 now and I have discovered that tomcat 6 uses commons logging without log4j enabled. log4j is 'enabled' when you configure it and supply the jar file. I have log4j.jar and commons-logging-1.1.jar in my