Thanks for those inputs "bsnyder" issue is resolved now. I added a similar
appender in my jboss/conf/log4j.xml and it is working fine with seperate log
files being created.
bsnyder wrote:
>
> On 8/21/07, ram4servicemix <[EMAIL PROTECTED]> wrote:
>>
>> Hi All,
>>
>> I am using log4j.xml in my servicemix component. In the process of
>> logging
>> i am trying to have the log files individually for debug & error as
>> debug.log and error.log respectively.
>>
>> I am using Jboss server as my application server.
>>
>> 1. Is there anything different that has to be followed for servicemix
>> 2. Where exactly the log4j.xml has to be resided.
>> 3. or Service mix provides anyother options for logging.
>
> Filtering log statements into separate files can be achieved using
> Log4J filters which can only be used in a log4j.xml style of
> configuraiton. Luckily, ServiceMix uses this style of configuration
> via the conf/log4j.xml. Below is an example of an appender for
> filtering only the error level:
>
> <appender name="ERROR" class="org.apache.log4j.RollingFileAppender">
>
>
>
>
> <layout class="org.apache.log4j.PatternLayout">
>
> </layout>
> <filter class="org.apache.log4j.varia.LevelRangeFilter">
>
> </filter>
> </appender>
>
>
> What you'll need to do is configure a separate appender for each level
> that you'd like to append to its own log file.
>
> Bruce
> --
> perl -e 'print
> unpack("u30","D0G)[EMAIL PROTECTED]&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
> );'
>
> Apache ActiveMQ - http://activemq.org/
> Apache ServiceMix - http://servicemix.org/
> Apache Geronimo - http://geronimo.apache.org/
> Castor - http://castor.org/
>
>
--
View this message in context:
http://www.nabble.com/Creating-log-files-tf4303842s12049.html#a12326992
Sent from the ServiceMix - User mailing list archive at Nabble.com.