Hi,
     I have been able to channelize the log information by writing a custom
appender and specifying the logger name
     as 'Test1' into a separate log file.
     
     How can I use multiple log files, multiple logger names and the same
appender ? In short I would like to
     avoid repeating the same XML section for the same appender but
different log files and logger names.
     
     Hope the question is clear. We require many logger names and multiple
log files.
          

Thanks,
Mohan


        <appender name="MultiplexingAppender1"
class="com.flux.forkappender.MultiplexingAppender">
                <!-- The active file to log to -->
                
                
                
                
                    <!-- Keep one backup file -->
                


                <layout class="org.apache.log4j.PatternLayout">
                        <!-- The log message pattern -->
                        
                </layout>
        </appender>
        
        
        <!-- Uncomment to enable info -->
        <logger name="Test1">
                <level value="info"/>
                <appender-ref ref="MultiplexingAppender1" />
        </logger>

-- 
View this message in context: 
http://old.nabble.com/Multiple-log-files%2C-multiple-logger-names-and-the-same-appender-tp28024737p28024737.html
Sent from the Log4j - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to