Re: design question

2002-12-17 Thread Daniel . Hannum
I don't know how much this helps you, but at our company, we just specified a bunch of new fields through the MDC. When an application starts, it goes MDC.set("ProductId", "widget"); And then in your layout, you include "%X{ProductId}" and the Product ID will be printed out. This means you onl

permissions in FileAppender

2002-12-12 Thread Daniel . Hannum
If I send logs from one app to another over SocketAppender and the listener writes to a FileAppender, am I correct that write permissions are dependent only on the user who ran the server, and NOT the user who generated the log? Put another way, Log4j doesn't care about userid's and passwords? It

Re: Réf. : %t always returns "main"

2002-11-22 Thread Daniel . Hannum
name "My_new_thread", Log4j says the thread is "main". If I do this.getName() inside run(), it returns the proper name. I think if %t just didn't work, people would have noticed, so maybe someone can point out the flaw in my code. Thank you Daniel Hannum -

%t always returns "main"

2002-11-22 Thread Daniel . Hannum
quot;. If I do this.getName() inside run(), it returns the proper name. I think if %t just didn't work, people would have noticed, so maybe someone can point out the flaw in my code. Thank you Daniel Hannum

RE: Question of inheritance

2002-11-18 Thread Daniel . Hannum
It's a standard param to appenders, i.e. just as "File" is a parameter that you can set for FileAppenders, "Threshold" is something you can set, too. So it's log4j.appender..Threshold=DEBUG or, analogously in XML within an appender tag dan "Christophe Marcourt" <[EMAIL PROTECTED]> on 1

RE: Question of inheritance

2002-11-18 Thread Daniel . Hannum
I noted this a while back, posted a question, but never got a reply. When logs are passed up the tree to parent loggers, the parent loggers don't check the log event against their own level. The level check is *only* done at the logger through which the log enters. I fix this by specifying level

Re: %P and %H addition to PatternLayout

2002-11-08 Thread Daniel . Hannum
I'd love for this to be addressed. I don't want this message to be quietly ignored, so... bump. These are required in my work. If we don't do this, then I'll have to hack it up myself. However, I believe Java doesn't provide a means to get a pid. I'm not sure if this is true, but it would throw a

Is configureAndWatch unique to Log4j?

2002-11-07 Thread Daniel . Hannum
Log4j, but I need to know about the capabilities of the competition. I would assume that Java 1.4 provides some kind of built-in class roughly the same as FileWatchdog. If a Java expert could give a quick yes/no, that would be great. Th