RE: Questions on initial log4j instance

2003-09-29 Thread Cakalic, James
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

RE: Log4J and EJBs

2003-07-15 Thread Cakalic, James
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,

RE: log4j presentation slides

2003-02-26 Thread Cakalic, James
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]

RE: log4j and WSAD 5.0 anomalies and problems

2003-02-11 Thread Cakalic, James P.
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:

RE: Catching uncaught exceptions

2002-12-12 Thread Cakalic, James
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]]

RE: %P and %H addition to PatternLayout

2002-11-08 Thread Cakalic, James
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

RE: ConsoleAppender and System.{out,err}.println

2002-10-23 Thread Cakalic, James
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

RE: Log4J design question: this.getClass() in super class

2002-10-23 Thread Cakalic, James
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

RE: JMSAppender in Container Managed Transactions

2002-09-06 Thread Cakalic, James
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

RE: JMSAppender in Container Managed Transactions

2002-09-06 Thread Cakalic, James
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

RE: Performance between Log4j and custom in-house logger

2002-09-03 Thread Cakalic, James
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

RE: Using Log4J in EJB server

2002-05-30 Thread Cakalic, James
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

RE: Performance of log4j

2002-04-18 Thread Cakalic, James
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

RE: survey: Is the FATAL priority level useful?

2002-02-19 Thread Cakalic, James
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

RE: survey: Is the FATAL priority level useful?

2002-02-18 Thread Cakalic, James
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?

RE: Log4C

2001-10-27 Thread Cakalic, James P.
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]

RE: Log4J in JSP??

2001-07-23 Thread Cakalic, James P.
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

RE: Category.assert() disappointing

2001-06-25 Thread Cakalic, James P.
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:

RE: how can install tomcat as a service in Win 2000

2001-06-15 Thread Cakalic, James P.
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

RE: help with Wrapping/Buffering

2001-04-11 Thread Cakalic, James P.
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]

RE: Formatting NT Event log

2001-03-26 Thread Cakalic, James P.
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