RE: log4j and j2se 1.4 logging APIs delimma

2002-04-08 Thread Mark Womack
Chandan, I agree with Ylan. I don't see any compelling reason to switch from log4j to the new 1.4 logging api. Log4j has many more features that I consider critical to our logging requirements. And the open source nature of it makes it ideal for expanding and customizing to particular needs.

RE: DOMConfigurator

2002-04-08 Thread Mark Womack
You could try. But if errors are encountered, the repository can still end up being configured with something. The entire action is not aborted. -Mark > -Original Message- > From: xiaowen hu [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, April 03, 2002 9:46 AM > To: Log4J Users List > S

RE: NEWBIE PROBLEMS -- Figured everything out

2002-04-08 Thread Jeff Epstein
Apologies for the rapid-fire posts. I noticed the "sort" examples in the log4j download, which answered all my previous questions. Unless something like this already exists in the nooks and crannies of the log4 package... I would like to request an (optional) enhancement to crash w

RE: NEWBIE PROBLEM: Another inheritence question

2002-04-08 Thread Jeff Epstein
I realize now that I'm assigning the appender to the root, so ALL levels inherit it, regardless the name. It's confusing that an appender can be assigned to a logger, even though they have exactly the same names. I don't understand how to create a non-root appender (in the property file), and th

FileAppender throws FileNotFoundException when opening file for append? (MoreInfo)

2002-04-08 Thread Scott . Kay
Since I got no responses from the last post I thought more info might be warranted. The following script is used to start the Java application that is trying to use log4j to log to the same file being created with the redirect in the jagmgr.bat script below: -- Jagmgr.bat fil

NEWBIE PROBLEM: Another inheritence question

2002-04-08 Thread Jeff Epstein
(This is unrelated to my previous post) I've declared a "root appender" in the property configuration file. I specifically assigned the appender to com.foo.Bar, and did not apply *any* property configuration variables for com.foo. However, com.foo is ALSO printing out to the com.foo.Bar file.

RE: Appenders

2002-04-08 Thread Hu
Thanks for all. It works great! --- [EMAIL PROTECTED] wrote: > > From: Marie Jung > > Try something like that: > > class="org.apache.log4j.FileAppender"> > value="'c:/errorlogs/errorlog.log" /> > > class="org.apache.log4j.PatternLayout"> >

NEWBIE PROBLEM: Inheritence in property config file

2002-04-08 Thread Jeff Epstein
I am an experienced Java programmer, but am new to log4j. I'm confused as to why I'm getting this error (error output and code below). I understand that naming conventions for "inheritence" of loggers should be the same as your class heirarchy. Hence: com.foo and com.foo.Bar. But I'm getting

Re: Appenders

2002-04-08 Thread Edward Q. Bridges
i don't think Filters will work in a .properties configuration -- only DOMConfigurator. On Mon, 8 Apr 2002 11:10:45 -0300, Leandro dos Santos Rosa wrote: > Do you have the correct syntax for using filters using a property > configuration file? > > Thanks. > > []´s > Leandro dos Santos Rosa > [

Re: Appenders

2002-04-08 Thread Leandro dos Santos Rosa
Do you have the correct syntax for using filters using a property configuration file? Thanks. []´s Leandro dos Santos Rosa [EMAIL PROTECTED] - Original Message - From: <[EMAIL PROTECTED]> To: "Log4J Users List" <[EMAIL PROTECTED]> Sent: Monday, April 08, 2002 11:04 Subject: RE: Appender

RE: Appenders

2002-04-08 Thread mjung
From: Marie Jung Try something like that: Marie "Ylan Segal" <[EMAIL PROTECTED]> on 06/04/2002 01:15:31 Please respond to "Log4J Users List" <[EMAIL PROTECTED]> To: "Log4J

log4j version problem

2002-04-08 Thread Nauman Rafique
Hi, I am getting the following exception java.lang.ExceptionInInitializerError: java.lang.NullPointerException at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.(FileInputStream.java:64) at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyC