Re: Config Files

2003-12-10 Thread Tbee
Just making sure: note that these are system properties, not environment variables. You need to use "-D" when starting java to transport individual environment variables to the system properties. Quoting Ceki Gülcü <[EMAIL PROTECTED]>: > As Alison Ortega mentioned, log4j configurators support

Re: Config Files

2003-12-10 Thread Ceki Gülcü
As Alison Ortega mentioned, log4j configurators support the substitution of system properties, actually properties in general. Quite a handy feature... At 09:48 AM 12/10/2003 -0500, Alison Ortega wrote: I do this: ... and set the java properties - this config is portable btw windows an

Re: Config Files

2003-12-10 Thread Duncan Smith
Yeah. Thats the type of thing I meant. Thanks, Ill give it a go - Duncan Alison Ortega wrote: > I do this: > > class="org.apache.log4j.DailyRollingFileAppender"> > value="${acsauth.loghome}${file.separator}prf${file.separator}prf.log"/> > ... > > and set the java properties - this conf

Re: Config Files

2003-12-10 Thread Alison Ortega
I do this: ... and set the java properties - this config is portable btw windows and solaris. Is this what you meant? Alison Ortega North Carolina State University ACS Systems Programmer II 919-513-1417 >>> [EMAIL PROTECTED] 12/10/03 09:16AM >>> Is it possible to put envirinment var

Re: Config Files

2003-12-10 Thread Praveen Alavilli
I asked the same type of question some time back and here is the solution that I got http://www.mail-archive.com/[EMAIL PROTECTED]/msg10021.html I didn't try it because the new classes are not yet in the final release of log4J - they are only on sandbox. - Praveen Duncan Smith wrote on 12/10/

Re: Config Files

2003-12-10 Thread Tbee
> Is it possible to put envirinment variables into the configuration file? Not as far as I know. > The reason I ask is that I develop on a windows machine, and deploy onto > a linux, so the paths where I want to store the logs are differant. > > If it is not possible, does anyone have a suggesti

RE: Config Files

2003-12-10 Thread Avitzur Alon
ailto:[EMAIL PROTECTED] Sent: Wednesday, December 10, 2003 4:17 PM To: [EMAIL PROTECTED] Subject: Config Files Is it possible to put envirinment variables into the configuration file? The reason I ask is that I develop on a windows machine, and deploy onto a linux, so the paths where I want to stor

Config Files

2003-12-10 Thread Duncan Smith
Is it possible to put envirinment variables into the configuration file? The reason I ask is that I develop on a windows machine, and deploy onto a linux, so the paths where I want to store the logs are differant. If it is not possible, does anyone have a suggestion for how to do this. Many than

RE: Need help on categoryFactory in XML config files [BUG 21707]

2003-09-27 Thread Mark.Priest
Good Luck, Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Fri 9/26/2003 9:53 PM To: [EMAIL PROTECTED] Cc: Subject: RE: Need help on categoryFactory in XML config files [BUG 21707] Thanks Mark. It was really helpful.. but I&#x

RE: Need help on categoryFactory in XML config files [BUG 21707]

2003-09-26 Thread VSetty
ptember 12, 2003 3:59 PM To: [EMAIL PROTECTED] Subject: RE: Need help on categoryFactory in XML config files [BUG 21707] Hi, The bug that you are referring to has not been resolved. You can try the work-around that I posted in http://marc.theaimsgroup.com/?l=log4j-user&m=106312777504479&w=2

RE: Need help on categoryFactory in XML config files [BUG 21707]

2003-09-12 Thread Mark.Priest
: Friday, September 12, 2003 6:50 PM To: [EMAIL PROTECTED] Subject: FW: Need help on categoryFactory in XML config files [BUG 21707] We are using log4j 1.2.8. in our project (J2EE on WLS server). We have sub-classed the Logger and LoggerFactory according to the examples. We are using an XML

FW: Need help on categoryFactory in XML config files [BUG 21707]

2003-09-12 Thread VSetty
We are using log4j 1.2.8. in our project (J2EE on WLS server). We have sub-classed the Logger and LoggerFactory according to the examples. We are using an XML file for configuration. When we use or (without the class attribute) and in our log4j.xml, the DOMConfigurator is creating Logger in

Re: Are there any browser based configuration tools for log4j config files?

2002-08-01 Thread Eric Gilbertson
> > > > > >Eric Gilbertson <[EMAIL PROTECTED]> on 08/01/2002 10:50:34 >AM > >Please respond to "Log4J Users List" <[EMAIL PROTECTED]> > >To: "Log4J Users List" <[EMAIL PROTECTED]> >cc: > >Subject: Are there any browser b

Re: Are there any browser based configuration tools for log4j config files?

2002-08-01 Thread Luc_Bell
:50:34 AM Please respond to "Log4J Users List" <[EMAIL PROTECTED]> To: "Log4J Users List" <[EMAIL PROTECTED]> cc: Subject: Are there any browser based configuration tools for log4j config files? Log4J Users: Anyone know of an browser based t

Are there any browser based configuration tools for log4j config files?

2002-08-01 Thread Eric Gilbertson
Log4J Users: Anyone know of an browser based tool for the editing of XML based log4j configuration files? Ideally this tool would provide a tree view of the category hierarchy with the ability to modify appenders and category settings. Searching the archives I did come across "configLog4j" (free

AW: Servlets and config files

2002-01-28 Thread Sauder Thomas - IWKA Informationssysteme GmbH
he combination of init servlet and configureAndWatch your are more flexible. Regards Thomas > -Ursprüngliche Nachricht- > Von: Sara Prigge [mailto:[EMAIL PROTECTED]] > Gesendet: Montag, 28. Januar 2002 21:33 > An: 'Log4J Users List' > Betreff: RE: Servlets and config

RE: Servlets and config files

2002-01-28 Thread Sara Prigge
day, January 25, 2002 3:16 AM To: 'Log4J Users List' Subject: AW: Servlets and config files Try the following: PropertyConfigurator.configure(getServletContext().getRealPath("/") + ); BTW, if you use log4j.properties in your WEB-INF/classes dir you do no

AW: Servlets and config files

2002-01-25 Thread Sauder Thomas - IWKA Informationssysteme GmbH
Try the following: PropertyConfigurator.configure(getServletContext().getRealPath("/") + ); BTW, if you use log4j.properties in your WEB-INF/classes dir you do not need to call PropertyConfigurator.configure because Tomcat loads your properties file and configures log4j au

Servlets and config files

2002-01-24 Thread Bryan P. Glennon
I am running Tomcat 4.0 and cannot get my servlet to find the log4j config file. If I put a file called log4j.properties in my webapp's classes directory and use PropertyConfigurator.configure() it works fine. If, however, I name the file something different, and call PropertyConfigurator.configur

Help on xml config files

2001-12-17 Thread Mark Evans (Anaheim)
Okay, I got the xml configuration stuff figured out. When using the default log4j.configuration (via that system property), you can specify either a property file or an xml file. However, if you choose to call a configurator yourself, you have to call the right one. Call DOMConfigurator with an

RE: Help on XML config files

2001-12-17 Thread Mark Evans (Anaheim)
; System.out.println("hello"); test t = new test("stuff"); System.out.println("Done."); } } -Original Message- From: Ceki Gulcu [mailto:[EMAIL PROTECTED]] Sent: Monday, December 17, 2001 2:59 PM To: Log4J Users

Re: Help on XML config files

2001-12-17 Thread Ceki Gulcu
The property name you are looking for is "log4j.configuration". Invoke your program as java -classpath `local_jars` -Dlog4j.configuration="log4j.xml" -Dlog4j.debug test HTH, Ceki ps: Your XML file was never read. At 14:19 17.12.2001 -0800, you wrote: >I hope I'm posting this right! > >I've

Help on XML config files

2001-12-17 Thread Mark Evans (Anaheim)
I hope I'm posting this right! I've dorked around all day trying to get an xml configuration file working. It complains about not finding a root element. The documentation on the XML configuration file is weak at best. (Only a few examples, all the same.) I want to send output to stdout and to

RE: How to set up appenders for individual categories using config files.

2001-09-12 Thread Stephen Levinson
assign it to other categories as well Hope this helps, --Stephen -Original Message- From: Mike Dunnigan [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 11, 2001 4:56 PM To: [EMAIL PROTECTED] Subject: How to set up appenders for individual categories using config files. When I try to

How to set up appenders for individual categories using config files.

2001-09-11 Thread Mike Dunnigan
When I try to add an appender to a particular category using the PropertyConfigurator I end up adding the appender to all my categories.Is there a way to set up a particular category with an appender using config files? Thanks, Mike

RE: Interpolation in xml config files

2001-07-19 Thread Mark Womack
>( btw, how do I escape the apostrophes ) ' should work in xml? Just like < (for <) and > (for >). hope it helps, -Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Interpolation in xml config files

2001-07-19 Thread Thomas Tuft Muller
Hi, Does DOMConfigurator support interpolation? If it does; how do I procede to define arbitrary properties for later use in the file. What I want to obtain is something like this: ( btw, how do I escape the apostrophes ) ... -- Thoma

Re: Help: DOMConfigurator, Custom Categories & XML Config Files

2001-06-24 Thread Paul Glezen
Jay Riddell wrote: > > My question is: How do I set this in an XML config file ? > > The DTD seems to say nothing about Factories. Hi Jay, It does now. Thanks for the patience. Also, refresh your appserver package and run javadoc on it. There's an example of how to configure a category fact

Help: DOMConfigurator, Custom Categories & XML Config Files

2001-06-22 Thread Jay Riddell
I am having a problem that the documentation discusses but doesn't seem to give a clear enough solution. I have my extended both Category and priority using the examples provided. I am getting the ClassCastException problem (as alluded to in docs\api\org\apache\log4j\examples\doc-files\mycat.goo

RE: How to set additivity with xml config files

2001-06-05 Thread Mark Masterson
Mike, Change what you sent as an example to look like this: This is one of those things that's buried in the DTD. Cheers, Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: How to set additivity with xml config files

2001-06-04 Thread Ceki Gülcü
From the log4j.dtd: This means that additivity is an attribute. Your example becomes: Hope this helps, Ceki At 11:06 04.06.2001 -0700, you wrote: >I cant seem to figure out how to set additivity to false for a given >category using the xml configs. > >Heres what I t

How to set additivity with xml config files

2001-06-04 Thread Mike Papper
I cant seem to figure out how to set additivity to false for a given category using the xml configs. Heres what I thought I could do, but it ignores it: Mike Papper - To unsubscribe, e-mail: [EM

RE: Multiple XML Config files?

2001-03-23 Thread Ceki Gülcü
Joshua, There is a bunch of XML files included in the package. Have a look a those. If you understand how the config file for the PropertyConfigurator works, among other things understand how categories are configured, then the XML config files should be a breeze. On another register, it

RE: Multiple XML Config files?

2001-03-23 Thread Diamond, Josh M
configuration file examples. Joshua Moses Diamond Vice President Robertson Stephens [EMAIL PROTECTED] +1 (212) 940-9649 -Original Message- From: Ceki Gülcü [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 22, 2001 11:40 AM To: LOG4J Users Mailing List Subject: Re: Multiple XML Config files

Re: Multiple XML Config files?

2001-03-22 Thread Ceki Gülcü
Reading the manual is a good starting point. Ceki At 16:21 22.03.2001 +, you wrote: >Hi. Do I need to create one logging configuration XML file per Java class?. >If not, how would I specify that I would like to be able to turn off debug >messages on one class, but not on another, i.e. in th

Multiple XML Config files?

2001-03-22 Thread Andrew Sealy-Bell
Hi. Do I need to create one logging configuration XML file per Java class?. If not, how would I specify that I would like to be able to turn off debug messages on one class, but not on another, i.e. in the same XML config file? I would appreciate any advice on this. Thanks. -