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
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
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
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
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
output.append(" " + ((Appender) oAppender).getName());
} else {
output.append( "(appender not extending Appender: " +
oAppender.toString() + ")");
}
}
output.append(EOL);
}
r
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
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
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
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
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
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
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
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).
--
--
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
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
comments? Any log4j developers that want to implement this trivial
change?
--
Tom Goetze
17 matches
Mail list logo