avalon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Berin Loritsch <blorit...@apache.org>
Subject Re: Phoenix and Loggers
Date Wed, 06 Jun 2001 13:20:22 GMT
Charles Benett wrote:
> 
> Hi!
> 
> Updating James to use Logkit 1.0b2 I came across this scenario: a
> component in a SAR that needs two loggers: one for 'functional' purposes
> and one for security purposes (ie I want to be able to handle Access or
> Authorization Exceptions differently than run of the mill stuff).
> I was using Logkit.getLoggerFor(james.Security) but LogKit is now
> deprecated.
> 
> What is the best way to do this?
> 
> Can I get a specified category from the Hierarchy objects in Phoenix?
> 
> Would it be better to go:
> 
> Logger securityLogger = getLogger().getChildLogger("security");
> and then use the server.xml file to plumb all the *.security loggers
> together?

Yep.  That is preferred.

Now, you can do the following:

Hierarchy.getDefaultHierarchy().getLoggerFor("james.Security");

It is functionally the same as what the LogKit does.

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


Mime
View raw message