You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4cxx-user@logging.apache.org by Jo...@kisters.de on 2007/10/25 10:28:09 UTC

Categories in Log4net

Hey!

I'm just wondering, log4j knows something called categories to sort the 
appenders.
Allthough I don't really know the difference between having seperate 
loggers and having seperate categories, I would like to know if log4net 
knows categories too and , if so, how they can be configured using an 
xml-style configuration file.
Thanx,
Johannes Frank

Re: Categories in Log4net

Posted by Curt Arnold <ca...@apache.org>.
On Oct 25, 2007, at 3:28 AM, Johannes.Frank@kisters.de wrote:

>
> Hey!
>
> I'm just wondering, log4j knows something called categories to sort  
> the appenders.
> Allthough I don't really know the difference between having  
> seperate loggers and having seperate categories, I would like to  
> know if log4net knows categories too and , if so, how they can be  
> configured using an xml-style configuration file.
> Thanx,
> Johannes Frank

I can't speak for log4net and you should ask on a log4net list  
instead of a log4cxx list.   Categories and Loggers are synonymous in  
log4j.  Category and Priority were used in log4j originally and  
Logger and Level were used in JDK 1.4 logging.  Logger and Level were  
added in log4j to be consistent with JDK 1.4's nomenclature and  
Category and Priority were deprecated.  Basically, a logger or  
category represents a topic (messages related to a specific class,  
messages about database interactions, etc) and those topics are then  
connected to appenders.