You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Arivoli Tirouvingdame <ar...@marantinetworks.com> on 2002/06/20 19:36:23 UTC

how to log messages from a given (source code) module to an appender?

-----Ursprüngliche Nachricht-----
Von: Arivoli Tirouvingdame [mailto:arivoli@marantinetworks.com]
Gesendet: Donnerstag, 20. Juni 2002 01:05
An: 'Fenner, Thomas'
Cc: 'Lam Hoang'
Betreff: RE: Problem with your example xml file: log4j_test.xml


Hi,
    I downloaded the  log4j-1.2.3.jar and JDBCLog.jar from
http://jakarta.apache.org/log4j/docs/index.html.  
 
    I want to filter the log message from a given module (source code)
to an appender.  I am having problems.  I looked at the
org.apache.log4j.spi.Filter class.  It has DenyAllFilter,
LevelMatchFilter and StringMatchFilter.  I couldnt get the examples in
StringMatchFilter.  Basically, the log messages may come from different
source code modules.  I want to add appenders for each module and log
them separately.
 
   I'd like to have some examples which explains me this.
 
thanks,
- oli