[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [virgo-dev] Custom logging appender?
- From: Glyn Normington <gnormington@xxxxxxxxxx>
- Date: Wed, 22 Dec 2010 16:44:06 +0000
- Delivered-to: email@example.com
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  and an earlier forum post , but please come back if there are insufficient clues there.
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.
> Tommy M. McGuire
> virgo-dev mailing list