Agree -- private static final Logger is what I recommend. Modifiers are
static then final, not vice versa. JLS section 8.3.1 defines the
production
FieldModifier: one of
public protected private
static final transient volatile
and states, If two or more (distinct) field modifiers
Hi, Jonathan.
The EJB Spec (section 23.1.2 in the EJB 2.0 Spec) states that the intent
of the specification is to describe the programming restrictions that a
Bean Provider must follow to ensure that the enterprise bean is portable
and can be deployed in any compliant EJB 2.0 Container. Thus,
You might have a look here:
http://www.ociweb.com/javasig/knowledgebase/January2001/Log4J.ppt
and one on java.logging and Lumberjack is here:
http://www.ociweb.com/javasig/knowledgebase/2001Dec/Lumberjack.pdf
HTH
Jim Cakalic
-Original Message-
From: Lu, David [mailto:[EMAIL PROTECTED]
Of course, that code is only executed if the default Logger initialization from a
properties file is not performed. Apparently, your log4j.properties file is not being
found.
-Original Message-
From: Ceki Gülcü [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 10:16 AM
To:
Use Jim Moore's LoggingOutputStream. You'll find it in his log4j contrib directory in
the release. The javadoc describes how to use it to redirect System.out and System.err.
Best regards,
Jim Cakalic
-Original Message-
From: Thomas Saxtoft [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Hostname yes. Can't get pid without using native code.
-Original Message-
From: [EMAIL PROTECTED] [mailto:Daniel.Hannum;smed.com]
Sent: Friday, November 08, 2002 10:04 AM
To: Log4J Users List
Subject: Re: %P and %H addition to PatternLayout
I'd love for this to be addressed. I don't
Every implementation of PrintStream (the class of System.out) that I have ever
reviewed synchronized on itself (the object) around the actual I/O. So all the public
print, println, and flush methods are synchronized. Whenever one of these methods is
called, the output will be written
I've been the lead on several large projects now which have used log4j.
On each project there have been between 8 and 15 developers. The current
project has over 1200 Java classes. (I don't have stats for the previous
but they were equivalent in size.) The guidelines I give new developers
state
As you say, the problem is on the producer side. I think the real question has to do
with whether the JMS drivers are XA-enabled and obtained through a container-defined
resource manager. If so, the container is going to try to coordinate any transaction
in progress across the JDBC and JMS
And this was my point, on which you vehemently contradicted me. The question was about
PRODUCING messages, not about CONSUMING them. And the producing was to be done in the
context of a container-managed transaction. In that scenario, local JMS Session
transactions cannot be used. The JMS
Perhaps one telling comment is My logger does formattingwriting to log
file in a background thread. My question is, do your measurements
account for all background processing having been completed? If not,
this may explain why log4j performance appears to degrade in comparison
with mylogger as
Also consider, albeit poor practice, how much working EJB code you've seen
that uses System.out and/or System.err. Clearly, these are (and must be)
java.io.PrintStream instances. Furthermore, all implementations I've seen of
PrintStream are internally synchronized to prevent output from multiple
As you yourself noted, a major problem with the compile-time elimination of
logging (debug or other) is that it then becomes impossible to enable same
at run time. You don't really appreciate that ability until you've had to
use it -- even once -- to diagnose a production problem.
Another
useful?
On Mon, Feb 18, 2002 at 05:08:15PM -0500, Cakalic, James wrote:
Were you aware of the log4py project on sourceforge?
http://sourceforge.net/projects/log4py/
Jim,
Yes, I have looked briefly at log4py. Log4py is a little
limited for what I
would like to see in the Python core
Were you aware of the log4py project on sourceforge?
http://sourceforge.net/projects/log4py/
Jim
-Original Message-
From: Trent Mick [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 18, 2002 3:52 PM
To: [EMAIL PROTECTED]
Subject: survey: Is the FATAL priority level useful?
Title: RE: Log4C
Haven't looked at it yet. How similar is it, do you think, to the C++ version at
http://sourceforge.net/projects/log4cpp/?
-Original Message-
From: (ti) Mark Mendel [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 25, 2001 4:12 PM
To: [EMAIL PROTECTED]
Hmm. I
try to avoid 'method repositories' where possible. I also try to put as little
Java code in a JSP as possible. That way, I find that I don't often have much of
interest to log from a JSP. Anyway, here are a couple
suggestions.
First,
why not have a look at the Jakarta Log Tag
Title: RE: Category.assert() disappointing
Of course, JUnit is a unit testing framework, not a logging framework.
:-o
-Original Message-
From: Benjamin Russell Stocum [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 25, 2001 1:43 PM
To: LOG4J Users Mailing List
Subject: Re:
Title: RE: how can install tomcat as a service in Win 2000
Not really a log4j question, but in the true community spirit ...
Have a look at the Jakarta NT Service page
http://jakarta.apache.org/tomcat/tomcat-3.2-doc/NT-Service-howto.html
and also the Alexandria Software JavaService tool
Title: RE: help with Wrapping/Buffering
Hi, Ross.
Have a look at the source for org.apache.log4j.spi.LocationInfo.
Best regards,
Jim Cakalic
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 10, 2001 5:19 AM
To: [EMAIL PROTECTED]
Title: RE: Formatting NT Event log
The NTEventLogAppender could probably use some work, seeing as it doesn't currently support options. The only way, then, to set the event source is by virtue of one of the alternate constructors which permits specifying the source. The constructor will
21 matches
Mail list logo