new Log4j Related Resources wiki page created!

2007-06-01 Thread Jacob Kjome
I took it upon myself to create a new Wiki page dedicated to Log4j Related External Resources [1]. It is linked from the main Log4jProjectPages [2] in the External Resources section near the bottom of the page. Feel free to add/edit this page as you find resources that would be of use to Lo

Re: separate log file for each thread

2007-06-01 Thread Edward L. Knoll
Look for references to the MDCFileAppender. Believe this is a 3rd party solution. Don't recall where we found the source for this. We utilize this appender to separate log files for each thread in several of our applications. Couple of things we don't like about it, but it works well enough.

Re: separate log file for each thread

2007-06-01 Thread Steve Souza
I suspect with the new JAMonAppender you could do a pattern layout that only has the thread in it, and then you would be able to create a buffer that would allow you to display in a buffer from a web page the most recent N log messages from each thread. You could also use this to write each log m

Re: Logging - What good is it ?

2007-06-01 Thread Arthur Blake
JAMon looks like a pretty neat tool. Almost a full-fledged profiler... I also noticed it has a lot of cross over with my program log4jdbc (see http://log4jdbc.sourceforge.net) actually JAmon does a lot more, but it is interesting to see some of your ideas because I have some similar ideas for lo

RE: Unable to call doRender. Am I missing anything?

2007-06-01 Thread Naider Chen
Thanks Ron: Thank you for your reply and I really appreciate it. May be The getRenderedMessage method in the LoggingEvent is another place that I can intercept the log message. But I'm just beginning to look how to use log4j and I need to do some more research to find out how do I overwrite th

RE: log4j implementation question

2007-06-01 Thread Propes, Barry L
yeah, I'm actually thinking I am using too new a version of log4j for the version of Tomcat (yes it is old) that I'm using. As soon as I/we can, I will be upgrading to TC 5.5. I also need to upgrade my ancient Eclipse version as well. Heck my whole computer and servers are from a decade ago! :

Re: separate log file for each thread

2007-06-01 Thread Patrick
Are there other logging subsystems that are capable of doing this other than log4j? Is the only solution to: tail -f main.log | grep [threadid] -Patrick On 5/31/07, Patrick & Lisa <[EMAIL PROTECTED]> wrote: Hi all - I've been searching and have yet to find a definitive answer on how to crea

Re: log4j implementation question

2007-06-01 Thread Jacob Kjome
This is starting to become the realm of the Tomcat support list. In any case, you need to keep something in mind. The log4j.jar in common/lib is for Tomcat's logging purposes. If you want to separate Tocmat logging from application logging, also put log4j.jar in WEB-INF/lib and your applica

RE: log4j implementation question

2007-06-01 Thread Propes, Barry L
well, some progress. I don't get an error, Tomcat doesn't post the INFO messages on startup like it used to (with its logger class?) Any way, I made this basic little servlet from their example, but it gives me an error about the package. import org.apache.log4j.Logger; import org.apache.

RE: log4j implementation question

2007-06-01 Thread Propes, Barry L
I put the xml and properties file in the classes directory of my WEB-INF folder, not the commons. I guess I did that incorrectly. Let me try that again, and move them to that directory. Thanks, Jake! -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED] Sent: Friday, June 01,

File and Console Appenders question

2007-06-01 Thread untz
Hello there, I am using an init servlet to load my log4j.properties file during app start up... public class Log4jInitServlet extends HttpServlet { public void init() throws ServletException { Properties props = new Properties(); try { props.load(

Re: log4j implementation question

2007-06-01 Thread Jacob Kjome
On Fri, 1 Jun 2007 12:31:29 -0400 "Propes, Barry L " <[EMAIL PROTECTED]> wrote: got this error upon startup for Tomcat when I added it to the common/lib dir. log4j:WARN No appenders could be found for logger (org.apa igester). log4j:WARN Please initialize the log4j system properly. That's a

RE: log4j implementation question

2007-06-01 Thread Propes, Barry L
got this error upon startup for Tomcat when I added it to the common/lib dir. log4j:WARN No appenders could be found for logger (org.apa igester). log4j:WARN Please initialize the log4j system properly. -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED] Sent: Friday, June 01,

RE: log4j implementation question

2007-06-01 Thread Propes, Barry L
yes, using Tomcat 4.1.31 my logging seems to work fine, for the most part, with Tomcat's built in FileLogger class. My commons-logging.jar file is in the following dir: C:\jakarta-tomcat-4.1.31\server\lib My commons-logging-api.jar is indeed in the commons\lib class. I'll throw log4j's jar fi

Re: log4j implementation question

2007-06-01 Thread Jacob Kjome
On Fri, 1 Jun 2007 11:23:54 -0400 "Propes, Barry L " <[EMAIL PROTECTED]> wrote: also, Jake, my commons-logging.jar file (NOT my commons-logging-api.jar, but just commons-logging.jar) is in the following dir. for me: $TOMCAT_HOME\server\lib should I throw in the log4j jar file in there as we

RE: log4j implementation question

2007-06-01 Thread Propes, Barry L
also, Jake, my commons-logging.jar file (NOT my commons-logging-api.jar, but just commons-logging.jar) is in the following dir. for me: $TOMCAT_HOME\server\lib should I throw in the log4j jar file in there as well? -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED] Sent: Fr

RE: Configuring a file appender using environment variable

2007-06-01 Thread Gallagher, Ron
Quinn -- Use the syntax ${xxx} in your configuration file, replacing xxx with the name of the system property that you want to use. Ron Gallagher, AT&T Mobility -Original Message- From: Cheung, Quinn [mailto:[EMAIL PROTECTED] Sent: Friday, June 01, 2007 10:06 AM To: Log4J Users List Sub

RE: Unable to call doRender. Am I missing anything?

2007-06-01 Thread Gallagher, Ron
Naider -- The purpose of Renderers is to generate a String representation of an Object. Since a String is already a String, there's no need to do any additional rendering. The getRenderedMessage method in the LoggingEvent is what is responsible for calling any defined renderers. This method has

RE: log4j implementation question

2007-06-01 Thread Propes, Barry L
ok, thanks for that extra advice. this is the title of the jar file I downloaded. log4j-1.2.14.jar Any way, I'm going to reunzip the directory into my app. I first just extracted it to the root of the hard drive, rather than to the app in Tomcat itself. I'll redo that and go from there, too.

Configuring a file appender using environment variable

2007-06-01 Thread Cheung, Quinn
Is it possible to configure the output file of a file appender using the environment variable APPDATA (Windows XP)? What is the syntax in the log4j.properties file and do I have to send an argument to the JVM? Thanks, - To uns