Re: extending log4j question

2004-11-04 Thread Tom . Goetze
og3 log = getLog3("foobar"); // only load once per class--not each time you want to write a log statement private void usefulMethod(MyObject obj) { if (obj.isInBadState()) { log.debug("Something bad happened with obj" + obj); } } } -- Tom Goet

Re: Use different log files inside one program

2004-10-29 Thread Tom . Goetze
needed. Another approach, if you are willing to use separate configuration files for each different app, is to use the System property (log4j.configuration--I think that's correct) to identify the exact static configuration file that you want to use. -- Tom Goetze [EMAIL PROT

RE: getting file path for a logger

2004-10-27 Thread Tom . Goetze
then that is the most recent log entries compared to the current file of myFile.txt. If there is a myFile.txt.2, then it is older data than both myFile.txt.1 and the current file of myFile.txt. -- Tom Goetze "Marc Esher \(4-2060\)" <[EMAIL PROTECTED]> 10/27/2004 12:02 PM Plea

RE: Attempted to append to closed appender

2004-10-26 Thread Tom . Goetze
you. Another possibility for you, would be to change the name of your appender and it might go back to working. -- Tom Goetze "Fenderbosch, Eric" <[EMAIL PROTECTED]> 10/26/2004 08:36 AM Please respond to "Log4J Users List" To: "Log4J Users List

RE: Attempted to append to closed appender

2004-10-26 Thread Tom . Goetze
call. -- Tom Goetze "Fenderbosch, Eric" <[EMAIL PROTECTED]> 10/26/2004 08:02 AM Please respond to "Log4J Users List" To: "Log4J Users List" <[EMAIL PROTECTED]> cc: Subject:RE: Attempted to append to closed appender

Re: a wish: String DOMConfigurator.dump()

2004-10-13 Thread Tom . Goetze
output.append(" " + ((Appender) oAppender).getName()); } else { output.append( "(appender not extending Appender: " + oAppender.toString() + ")"); } } output.append(EOL); } r

Re: removeAllAppenders closes but doesn't remove?!?

2004-09-21 Thread Tom . Goetze
Turns out my issue is because the log4j.properties file that was found (and I don't control) configured 2 loggers to use the same named appender. Subsequently, when I did a PropertyConfigurator.configure(), one of the existing loggers had all of its appenders closed and removed. Therefore the o

removeAllAppenders closes but doesn't remove?!?

2004-09-20 Thread Tom . Goetze
it might be the solution I have to go with. Also, it seems that calling resetConfiguration() causes the first Logger that was created to not work, so that doesn't seem to be a solution for me either. -- Tom Goetze

Re: New Log4j appender available

2004-09-08 Thread Tom . Goetze
paste from BufferedIO boolean. Here's the section: # BufferSize: sets the size of the buffer to use if BufferedIO is true. # The default size is 8K. #log4j.appender.T.BufferedIO=8192 -- Tom Goetze minaret <[EMAIL PROTECTED]> 09/06/2004 09:39 AM Please respond to "Log4J

RE: DailyRolling not Happening in log4j Urgent

2004-08-27 Thread Tom . Goetze
LogLog is not enabled and running on *nix. Does that mean there aren't any known issues (for me)? Thanks -- Tom Goetze The changes in 1.3alpha and those suggested by Allistair Crossley are in relation with file handle locks which prevent log4j from properly rolling the log

RE: DailyRolling not Happening in log4j Urgent

2004-08-27 Thread Tom . Goetze
Is there a documented (and accepted) bug for this problem? This looks close, but not reproducable: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4090 I'm thinking of moving to DailyRollingFileAppender (with version 1.2.x), and my few tests have not uncovered any problems. Maybe the bug resu

Re: Configuring Log4J

2004-08-17 Thread Tom . Goetze
appender. -- Tom Goetze Yes I've been searching for 2 days and haven't found anything... Only stuff is the base configuration in the short manual on the log4j website...and a couple of review articles on the use of log4j... And of course I'd to hunt down the Conversion Pattern form

RE: Is there a "MQAppender"...

2004-08-16 Thread Tom . Goetze
You might find this article of interest, if you want to write your own... Develop an Asynchronous Logging Framework using log4j with JMS and WebSphere MQ http://www-106.ibm.com/developerworks/websphere/library/techarticles/0207_barcia/barcia.html -- Tom Goetze Thomas, Thanks for the

RE: Question about implementation of SocketAppender

2004-08-05 Thread Tom . Goetze
efore the next release, this isn't a critical issue for me, but in the interests of cleaning up what is there, I believe some change should be made to the existing SocketAppender (either make it a final class, or change a half-dozen lines of code and make it so that it can be extended). --

Re: Question about implementation of SocketAppender

2004-08-05 Thread Tom . Goetze
-- Tom Goetze At 09:04 PM 8/5/2004, you wrote: >Anyone know why the SocketAppender doesn't have a "setter" for the >"address" member variable. Address is the internal representation of the remoteHost variable. Tom: But it only gets used once (to be checked f

RE: Question about implementation of SocketAppender

2004-08-05 Thread Tom . Goetze
ing a process to monitor a separate SocketServer, and re-start it if it isn't running. Of course this only works for multiple JVMs on the same host, but that is my current issue. Scott, were you willing to change the code? Or were you just curious? -- Tom Goetze Hi Tom, If you don't

Question about implementation of SocketAppender

2004-08-05 Thread Tom . Goetze
comments? Any log4j developers that want to implement this trivial change? -- Tom Goetze