On Wed, 20 Jun 2001 19:11, Ceki Gülcü wrote:
> But even if the servlets are in the same web-application but do not trust
> each other, I still do not see the problem.
>
> In log4j, anyone can retrieve a category by name. You can simply write:
>
> Categoty log = Category.getInstance("some-other.servlet")
I assumed that Log4j allowed separate Hierarchies. So you can create a new
hierarchy and it would not be accessible via static methods?
> this has nothing to do with the parent/child relationship. Am I missing
> something? Ceki
Well assuming that root Logger is not accessible, it is not possible to futz
with parents Loggers (ie do unsafe things) if you don't have getParent() as
there is no way to get a reference to any of those objects.
Cheers,
Pete
*-----------------------------------------------------*
| "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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]