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/27 22:22:54 UTC

How to log message from a source code module separately to an appender?


-----Original Message-----
From: Arivoli Tirouvingdame [mailto:arivoli@marantinetworks.com] 
Sent: Thursday, June 27, 2002 12:19 PM
To: 'Log4J Users List'; 'Adrian.Brock@HappeningTimes.com'
Subject: RE: again multiple components using log4j causes problems


Hi all,

    I downloaded the  log4j-1.2.3.jar and JDBCLog.jar from
http://jakarta.apache.org/log4j/docs/index.html.  
 
    Our application consists of many modules.  I want to filter the log
message from a given module (source code module) 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 example programs for  StringMatchFilter.  Basically, the log
messages may come from different source code modules.  I want to add
appenders for each module and log each module separately.
 
   I'd like to have some examples which explains me this.
 
thanks,
- oli


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: How to log message from a source code module separately to an appender?

Posted by Thomas Tuft Muller <tt...@online.no>.
| I want to add
| appenders for each module and log each module separately.
|  
|    I'd like to have some examples which explains me this.

http://jakarta.apache.org/log4j/docs/manual.html

--

Thomas




*************************************************************************
Copyright ERA Technology Ltd. 2002. (www.era.co.uk). All rights reserved. 
The information supplied in this email should be treated in confidence.
No liability whatsoever is accepted for any loss or damage 
suffered as a result of accessing this message or any attachments.

________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs SkyScan
service. For more information on a proactive anti-virus service working
around the clock, around the globe, visit http://www.messagelabs.com
________________________________________________________________________

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>