RE: Initialization Question

2002-11-21 Thread Mark Womack
Having a property file is the most interesting aspect. If you were going to put a property key/value element directly in the configuration file, why not just use the value directly in the configuration file in the first place? Unless you used xml entities to define a file of property elements to i

RE: Initialization Question

2002-11-21 Thread Ceki Gülcü
At 13:51 21.11.2002 -0800, you wrote: > > How do you envision this working? Can you please provide an example? > > I was thinking about something similar to ant's syntax, > > > > > > > > Not sure if this is feasible... the DTD would need to be updated > to support this new 'pro

RE: Initialization Question

2002-11-21 Thread Mark Womack
> > How do you envision this working? Can you please provide an example? > > I was thinking about something similar to ant's syntax, > > > > > > > > Not sure if this is feasible... the DTD would need to be updated > to support this new 'property' element. It would be inter

RE: Initialization Question

2002-11-21 Thread Fabien Modoux
Thanks for your response, Ceki. > >When using PropertyConfigurator I found this very convenient > >and Ant has this feature in its xml build file. Has anyone > >experience this and found a workaround for it? Is there any > >reason this was not added or is it planned for future releases? > > How d

RE: Initialization Question

2002-11-21 Thread Ceki Gülcü
At 14:15 21.11.2002 -0500, you wrote: Hello, I have just started using log4j's xml-based configuration and though it supports substitution for system properties, I have not found anything about defining generic variables that can be referenced in the configuration file. You are right there is n

RE: Line numbers and method name of calling class

2002-11-21 Thread Ceki Gülcü
Hmm, I would recommend against using commons-logging because its behavior is tightly coupled with the class loader structure. This results in inextricably complex bugs. At 10:54 21.11.2002 -0800, you wrote: You do know that jakarta-commons has a commons-logging package that provides a generic w

RE: Initialization Question

2002-11-21 Thread Fabien Modoux
Hello, I have just started using log4j's xml-based configuration and though it supports substitution for system properties, I have not found anything about defining generic variables that can be referenced in the configuration file. When using PropertyConfigurator I found this very convenient a

RE: Initialization Question

2002-11-21 Thread Michael Rimov
At 10:38 AM 11/21/2002 +, you wrote: Log4j has supported system properties interpolation in XML/properties configuration files at least since I started using it (almost two years ago). Just add the variables to system properties before Log4j fires up, e.g. with the -D option to the VM. Whoo

RE: Line numbers and method name of calling class

2002-11-21 Thread Mark Womack
You do know that jakarta-commons has a commons-logging package that provides a generic wrapper, right? You may want to look at it instead of re-inventing the wheel, um, I mean wrapper. And there are issues surrounding whether to wrap or not to wrap. If you still feel you need a wrapper, and want

RE: Line numbers and method name of calling class

2002-11-21 Thread Shapira, Yoav
Hi, >Does anyone know a way to fix this?? Don't use a wrapper ;) Chances you're just reducing performance and adding a layer or complexity for not much of a win. Yoav Shapira Millennium ChemInformatics -- To unsubscribe, e-mail: For additional commands, e-mail:

Line numbers and method name of calling class

2002-11-21 Thread Abhijeet Sarwate
Hi, I am trying to write a wrapper for Log4J. It works. But the problem is that line number printed are of that wrapper and not of the class where it is used ? So if I write a test code and invoke my api- writeDebug(), then it prints the wrapper line number from where the actual debug method is ca

RE: log4j.dtd not found ?

2002-11-21 Thread Clive Beavis
Thank you That helped. Its fixed now Regards Clive Beavis 650 464 2604 -Original Message- From: Koes, Derrick [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 5:54 AM To: 'Log4J Users List' Subject:RE: log4j.dtd not found ? Is the SYSTEM path to log4j.dt

RE: log4j.dtd not found ?

2002-11-21 Thread Koes, Derrick
Is the SYSTEM path to log4j.dtd in your XML configuration file correct? You might try: jar:file:/path/to/jar/log4j-1.2.6.jar!/org/apache/log4j/xml/log4j.dtd -Original Message- From: Clive Beavis [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 20, 2002 5:06 PM To: [EMAIL PROTECTED]

RE: OutOfMemoryError using Log4J

2002-11-21 Thread Shapira, Yoav
Hi, Re-calling Configurator.configure() each time to make a change is inefficient. Instead, either: - Configure with a watchdog, i.e. configureAndWatch(). - Have a servlet, JSP, or whatever fits your framework, where the user can input a logger name (package or class name, doesn't matter), and a

RE: Initialization Question

2002-11-21 Thread Thomas Muller
Log4j has supported system properties interpolation in XML/properties configuration files at least since I started using it (almost two years ago). Just add the variables to system properties before Log4j fires up, e.g. with the -D option to the VM. -- Thomas | -Original Message- | From

Initialization Question

2002-11-21 Thread Michael Rimov
Hey all, A quick question. We've been using Log4j for the Expresso project since before it moved to Jakarta, and it has been extremely faithful. I've been working on how to better set up xml configuration with log4j since DOM configuration has obviously matured greatly since we first dealt wi

RE: WebLogic Repository Selector Question

2002-11-21 Thread Ceki Gülcü
David, You are right to assume that there a different class loaders are different for jsps, servlets and EJBs in Weblogic. There is a different slightly different approach based on JNDI. Given that the JNDI name space is different for each application, one perhaps configure different resources