[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [virgo-dev] Custom logging appender?

You need to make sure the medic bundle in the kernel can load your appender class.

I suggest the cleanest technique would be to add two bundles to the kernel: a fragment bundle which contains just an import-package of the package of the appender class and another bundle which exports the package of the appender class and which contains the appender class.

You may prefer to roll these two bundles together for simplicity, but then the appender will have access to all sorts of medic internals that you wouldn't necessarily want it to become coupled to.

There is some background in bug 322398 [1] and an earlier forum post [2], but please come back if there are insufficient clues there.

Regards,
Glyn
[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=322398
[2] http://forum.springsource.org/showthread.php?t=83692

On 22 Dec 2010, at 16:29, Tommy M. McGuire wrote:

> Thanks for all your help previously. I have another question that I have
> been struggling with:
> 
> What is the best way to add a custom Logback appender to the server? We
> have an existing database schema that we want to log to, so I wrote a
> quick appender and have tried several permutations of adding it to the
> server so I can pick it up from the servicability.xml configuration.
> 
> Thanks!
> 
> 
> 
> -- 
> Tommy M. McGuire
> mcguire@xxxxxxxx
> _______________________________________________
> virgo-dev mailing list
> virgo-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/virgo-dev