Title: RE: write log to different files

Hi,

I just can't locate the fileAapender xml in the location specified.. Th sample4.xml exists but it does not contain anything related to rollingFileApender.. If you don't mind, please can you send a copy of that..

Thanks for the help..

AK

-----Original Message-----
From: Yuan Lisa (NET/MtView) [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 15, 2001 10:43 AM
To: 'Log4J Developers List'
Subject: RE: write log to different files


-----Original Message-----
From: ext Khandelwal, Anupam [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 13, 2001 2:54 PM
To: 'Log4J Developers List'
Subject: RE: write log to different files
Importance: Low



Hi,

How do I specify filters in config file..

Does anybody have the format of xml config file..
[Yuan Lisa (NET/MtView)]

Please refer to
\jakarta-log4j-1.1.3\src\java\org\apache\log4j\xml\test\test6.xml ~
test10.xml for config file format with filter.

If somebody can send it, I would really appreciate..

One more thing.. I want the file to be rotated for log messages after
particular file size.. Which appender to use and what changes do I need
to make in my xml config file..
[Yuan Lisa (NET/MtView)] Replace FileAppender with RollingFileAppender.
Check out example at
\jakarta-log4j-1.1.3\src\java\org\apache\log4j\xml\examples\sample4.xml.

Thanks for the help..

AK

-----Original Message-----
From: Lisa Yuan [ mailto:[EMAIL PROTECTED]]
Sent: Friday, November 09, 2001 10:41 AM
To: 'Log4J Developers List'
Subject: RE: write log to different files


Hi Scott,

   Thanks for hint. I'll try it out.
In our application, sometimes we need to write log to both
appender and sometimes we only want to write to one of them, not
the other.

Regards,
Lisa

  

-----Original Message-----
From: Scott Coleman [ mailto:[EMAIL PROTECTED]]
Sent: Friday, November 09, 2001 1:47 AM
To: 'Log4J Developers List'
Subject: RE: write log to different files


Hi Lisa

I am not an expert on log4j, but I think you can add filters. One such
filer
is a StringMatchFilter (or at least it is in the api), you could use
this to
filter out the messages you do not want going to one of the log files.

Can you please confirm that you want some of the messages to go to both
appenders?

Regards
Scott


-----Original Message-----
From: Lisa Yuan [ mailto:[EMAIL PROTECTED]]
Sent: Friday, November 09, 2001 3:07 AM
To: 'Log4J Developers List'
Subject: write log to different files


Hi,

  I am new to log4j. I try to find a solution for following situation.
Within same category, I like to write some log statements to file1 and
suppress those log statements in file2. File1 and file2 are attached to
same
category.
If I use two file appenders in same category, log requests will be
sent to both files, right? How can I control to send log statements only
to
file1 and not to file2
within same category?

Thanks for any help,
Lisa 

--
To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>


Reply via email to