Hi all,

My Avalon journey has led me to ask about configuration of loggers in
Merlin and possibly LogKit in general. Basically I'm going to want to create
custom configured loggers for different instances of a component.
I have moderate experience with log4j but none with LogKit though they look
reassuringly similar.


e.g. One instance of a component will require ContextMap for host
specific information to go in the log, it will have an INFO level LogTarget
and another LogTarget with a filter to only allow ERROR and higher messages.
Eventually I will need to reconfigure some of these while the system is
running.

So far these seem easily achieveable just by reading the logkit javadocs, my
problem is how to proceed in the avalon framework w.r.t components.

My initial scratchings have me making my own component-container that
creates and configures Loggers to supply to the components it also creates.

Or is it prefereable, to have merlin create the loggers and the components
fetch them from the ServiceManager, (I will almost certainly do this in the
early stages if possible to ease my transition instead of writing a container).


Is there a good reference of how to configure logkit using xml (initially).

Does anyone have good advice on using multiple loggers with merlin or
a better suggestion on how to implement this?


thanks in advance, Jon


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



Reply via email to