Yes exactly :-) Thank u very much,
I realized I did this all wrong.
I have read the Log4J tutorial,
I did the points 1 & 2, but for I have some difficulties on how to
implement point 3 & 4
I switched this to XML :
Thanks for your help, I am placing the log4j configuration in classes folder
,and refer to the file location using sytem property in xml.
Thanks
Rohan
James Stauffer <[EMAIL PROTECTED]> wrote:
If you are calling doConfigure in doGet of each servlet then it is
being configured multiple tim
For the System property issue I tried this :
And in my Java applciation I execute this line before I need to log in
the special appender :
System.setProperty("log.name",idRequest+".log");
[2/28/07 12:16:32:297 CET] 3e89f5
3. Both the system property and any needed directories need to be set
before log4j is configured. I created an appender that can create
directories as needed and it is at
http://stauffer.james.googlepages.com/DateFormatFileAppender.java
4. In your code you don't refer to a special appender, you
Anyone? Please advice on the configuration scenario in the previous message.
In short, we'd like to log messages in a certain way (specified in a
log4j.xml internal to our jar) when our app boots, and then at normal
runtime log messages as configured by the user in an external log4j.xml.
At thi
Ok,
I have set the system property before to initializing log4j
(just as test :
System.setProperty("log.name","temp.log");
DOMConfigurator.configure(PATH_TO_LOGS+"log4j.xml");
)
Then I change dynamically the system property to change the directory in
which the log
You can use code to remove all appenders.
On 2/28/07, Sergiu Bivol <[EMAIL PROTECTED]> wrote:
Anyone? Please advice on the configuration scenario in the previous message.
In short, we'd like to log messages in a certain way (specified in a
log4j.xml internal to our jar) when our app boots, and
Ok,
after having set the new system property to change dynamically of
location for the logs,
I reload the config,
System.setProperty("log.name","idRequest+".log");
DOMConfigurator.configure(AppConfigManager.PATH_TO_LOGS+"log4j.xml");
Thank u for your support:-)
_
Hi,
As a part of our J2EE application, we need to build a custom Layout for
the logging event. The generated log file is expected to be very large.
The custom layout need not to conform to any DTD, but, needs to be a
well-formed XML with the root element.
I am using XPath expression on the XM
Since the file is continuously changed it wouldn't be possible to have
a root element unless it is added as it is rolled.
On 2/28/07, Madduri, Murthy <[EMAIL PROTECTED]> wrote:
Hi,
As a part of our J2EE application, we need to build a custom Layout for
the logging event. The generated log fil
From a previous time the question was asked:
On Jan 11, 2007, at 4:27 PM, Curt Arnold wrote:
log4j doesn't actually produce an XML document since an XML
document can only have one element. log4j produces an XML parsed
entity (in this case a sequence of elements) that can be referenced
i
I was just wondering if there's a VFS receiver that supports XMLLayout?
Thanks!
Jeff
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
12 matches
Mail list logo