logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nirmala Rajaram <nraja...@idini.com>
Subject RE: Restricting the message to the category specified...
Date Tue, 06 Mar 2001 02:21:46 GMT
What i meant was that i want to log messages only for the category i
specified in the 
configuration file.Disable the logMessages for all other categories.

To be more precise,
if i include a category named aaa.bbb in my configuration file
i would like to log the messages corresponding to only this category.

If in my code i have another category ccc.ddd, i wouldn't like to log
messages 
for this category unless it is specified in the configuration file.

I think that would be useful if i want to log messages in all the
class file under one package or log messages corresponding to one
class file by just specifying the category
in the configuration file.

Regs,
 Nirmala.

-----Original Message-----
From: Jim Moore [mailto:jim.moore@veritas.com]
Sent: Tuesday, March 06, 2001 1:55 AM
To: 'LOG4J Users Mailing List'
Subject: RE: Restricting the message to the category specified... 


1) You always only log to the Category you ask to log to.  I think you
might
be confusing Categories and Appenders.

2) http://jakarta.apache.org/log4j/docs/FAQ.html#filterByPriority

-Jim Moore

-----Original Message-----
From: Nirmala Rajaram [mailto:nrajaram@idini.com]
Sent: Monday, March 05, 2001 6:27 PM
To: 'log4j-user@jakarta.apache.org'
Subject: Restricting the message to the category specified... 


Iam a new user to log4j.
I would to clarify on two things.
1. Can i restrict the log output to the category specified in the
configuration file.
for ex if i have a category com.abc specified in the configuration
file. The output should be logged only for this category and
not for anyother category.

2.How to restrict the log output for one particular priority. For
instance i would like to log the output for messages having thier
priority as DEBUG and not for anyother priority.


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-user-help@jakarta.apache.org

Mime
View raw message