Hello David!

dghga> One question though - the example logging xml file referes to
dghga> "system.logkit" - is there any support for log4j?

Yes there but help in testing and improving is probably needed :-)
There are two usage scenarios both for logkit and for log4j:

a) the logging system is configured somewhere outside
   avalon container and avalon container just gets hold
   of it and starts logging to a certain category and
   its descendants

b) avalon cotainer configures logging
   system by itself

To go along path a) you need to manually construct an
instance of LoggerManager, perhaps via
new Log4JLoggerManager()
and pass it to the FortressConfig.setLoggerManager()

To go along path b) with Fortress...

    <comment>
    It was me who was the last to deal with this kind of log4j
    support in Fortress, but to say the truth: IT NEEDS TESTING!!
    If you do it will be great :-)
    </comment>

... name the root element
of you log config file <log4j:configuration> or
<anything type="log4j"> and put regular log4j configuration
xml there. That's in theory.

Please, please, please let us
know if this will work for you!!!


-Anton


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

Reply via email to