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
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
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
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
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/
> 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
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
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
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
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
: 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
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
>
>
>
>
>
>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
: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
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
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
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
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
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
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
;
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
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
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
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
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
>( 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]
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
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
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
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:
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
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
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
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
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
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.
-
36 matches
Mail list logo