[slf4j-user] Where to put custom slf4j binding jar?

Zac Harvey zachary.harvey at gmail.com
Mon Oct 3 20:34:21 CEST 2011


My company recently built our own logging framework, and has decided to use
Apache Camel as our integration framework (Camel 2.7.2).  Camel recently
converted to using SLF4J and so in order to get Camel's internal guts
logging to our homegrown system, I have been tasked with writing a simple
SLF4J binding.

I am about 95% sure I followed the directions: namely I started with the
Log4J binding and modified it to provide Adapter and LoggerFactory classes
which use our internal logging framework.  I also modified
StaticLoggerBinder in accordance with the specs on SLF4J's website.

I made the binding its own jar (for separation of concerns, etc.).  Now I am
wondering where I need this jar placed so that Java sees my binding jar in
the classpath at runtime.

Do I just need to declare this binding jar as a dependency to any of our
projects that will make use of both Camel *and* our logging service? If so,
then that's an easy solution.  But this is my first SLF4J binding and I'm
having a tough time seeing the "forest through the trees" here.

Thanks in advance for any nudges in the right direction!

-Zac
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://qos.ch/pipermail/slf4j-user/attachments/20111003/1cb93eac/attachment.html>


More information about the slf4j-user mailing list