avalon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Donald <dona...@apache.org>
Subject Re: Phoenix and Loggers
Date Wed, 06 Jun 2001 14:31:09 GMT
At 02:06 PM 6/6/01 +0000, Charles Benett wrote:
>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
>What is the best way to do this?
>Can I get a specified category from the Hierarchy objects in Phoenix?

You could but it wouldn't be supported. In the future all applications will
use their own hierarchy and thus you will not be able to access them.

>Would it be better to go:
>Logger securityLogger = getLogger().getChildLogger("security");
>and then use the server.xml file to plumb all the *.security loggers


thats what I intended the design to support.



| "Faced with the choice between changing one's mind, |
| and proving that there is no need to do so - almost |
| everyone gets busy on the proof."                   |
|              - John Kenneth Galbraith               |

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

View raw message