Peter Donald wrote:
> 
> At 02:06 PM 6/6/01 +0000, 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?
> 
> 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
> >together?
> 
> +1
> 
> thats what I intended the design to support.
> 
Ta
C

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to