[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [xmlblaster] Logging (Factory)

;-) Ok. I will do a test, and check with you later. One last question:

in the currect impl each LogChannel gets its own LogDevice in initLog,
and the LogDevice gets info from the log channel for its fomatting and
such (I guess). Is this a requirement, because it will not work with the
ideas given above, becuse each type will only be instantiated once.

I believe that doesn't matter, we don't need any formatting when send to another logging framework. But i haven't check the code (it's from Juergen Birkle).

Instead the plugins would bhave to be a factories which creates devices (which could really be done by a generic factory ;-):


Its not pretty.

I think its beautiful, but just follow the way you like best.