Re: Log4j with JBoss

2001-09-07 Thread Scott M Stark
Update to JBoss 2.4.0 or just drop in the newer log4j.jar into lib/ext. This works for me. Send any follow to [EMAIL PROTECTED] - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, September 07, 2001 9:09 AM Subject: Log4j with JBoss > Is anyone using Log

Re: Category.assert() disappointing

2001-06-25 Thread Scott M Stark
Absolutely right Ceki. Think about using log4j in an application server. No way should a general logging framework attempt to take down a VM. - Original Message - From: "Ceki Gülcü" <[EMAIL PROTECTED]> To: "LOG4J Users Mailing List" <[EMAIL PROTECTED]> Sent: Monday, June 25, 2001 9:07 AM

Re: while we are talking about NDC

2001-06-12 Thread Scott M Stark
The only difference between InheritableThreadLocal and ThreadLocal occurs when the thread local variable is initialized. Accessing/setting the value is the same in both cases. Here is a simple example: public final class SecurityAssociation { private static ThreadLocal thread_principal = new

Re: Tomcat problem (again)

2001-05-31 Thread Scott M Stark
> The problem that has been hashed over and over is that classes loaded > from jars in WEB-INF/lib or tomcat's lib don't see WEB-INF/lib or > WEB-INF/classes. There are no class loader games you can play to change > this as far as I know. Certainly Category's classloader won't help any > here. >

Re: log4j.properties file location bug?

2001-05-08 Thread Scott M Stark
Using a file resource in a web-app descriptor means that one has to potentially change the file property for each deployment. Its much easier to be able to load the log4j.properties as a resource from the classpath than a file imho. You also may not even have access to a file system because loggin

Re: Memory footprint question re large-scale J2EE deployment

2001-04-04 Thread Scott M Stark
That is what I meant by Category as well. You should be seeing one org.apache.log4j.Category created for each unique value passed to getInstance(). I don't know why this would not show up in profiling. > > I'm sorry, by Category I mean "org.apache.log4j.Category" objects, not > to be confused wi

Re: Memory footprint question re large-scale J2EE deployment

2001-04-04 Thread Scott M Stark
I don't think its an issue even when you do have one Category per class. I was just pointing out that you can use less than one Category per class. - Original Message - From: "Johnson, Clay" <[EMAIL PROTECTED]> To: "'LOG4J Users Mailing List'" <[EMAIL PROTECTED]> Sent: Wednesday, April 0

Re: Memory footprint question re large-scale J2EE deployment

2001-04-04 Thread Scott M Stark
You don't have to follow the pattern of having a Category instance per class. I use one Category per package and sometimes one Category for a logical grouping of packages. - Original Message - From: "L. Scott Emmons" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, April 04,

Re: Using NDC to enable logging over a thread of control

2001-02-27 Thread Scott M Stark
This is a correct assessment of the need. I have such a feature in a custom logging framework that I have created that is very similar to log4j. In that logging framework the equivalent of the NDC allows you to push an override priority in addition to a context name and any logmsg issued within th

Re: Using NDC to enable logging over a thread of control

2001-02-17 Thread Scott M Stark
quot;LOG4J Users Mailing List" <[EMAIL PROTECTED]> Sent: Saturday, February 17, 2001 12:46 PM Subject: Re: Using NDC to enable logging over a thread of control > I've never tried the NDC approach before... do you think it would work? > > > On Friday, February 16, 2001,

Re: Using NDC to enable logging over a thread of control

2001-02-16 Thread Scott M Stark
;. One technique for doing this is to always get an instance of a category for logging in your application, but it depends if the user is on the debug list or not if calls go to the special log. You can put that instance of the Category into the request attributes. Let me know if I'm misinterpr

Re: Using NDC to enable logging over a thread of control

2001-02-16 Thread Scott M Stark
little more detail? Do you want to correlate messages with >Threads > or with clients? > > -Chris > > Scott M Stark wrote: > > > One common logging task I use frequently in server development is the ability to > > enable logging across a thread of control beginn

Using NDC to enable logging over a thread of control

2001-02-16 Thread Scott M Stark
One common logging task I use frequently in server development is the ability to enable logging across a thread of control beginning at some entry point. An example is enabling all log msgs regardless of priority that are executed within a particular servlet's service() method. Going through the l