[prev in list] [next in list] [prev in thread] [next in thread] 

List:       slf4j-user
Subject:    Re: [slf4j-user] How to use slf4j to consolidate JUL and log4j output?
From:       John Lussmyer <john () teamunify ! com>
Date:       2013-12-04 16:00:34
Message-ID: CA+Ukgsj6GrSvz5=UQbXkUqwhBJF4DoCMBntYQdVdS9vw6q1zTA () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Thanks, that fixed it!


On Tue, Dec 3, 2013 at 5:32 PM, Marshall Pierce <marshall@mpierce.org>wrote:

> On Dec 3, 2013, at 5:27 PM, John Lussmyer <john@teamunify.com> wrote:
>
> > We have a large existing app that has several HttpServlets. These are
> currently written using log4j logging - except a few of the libs that were
> written with Java.util.logging uses.
> >
> > I'd REALLY REALLY like to get them all going through the log4j handling
> and output formatting.
> >
> > It looks like I should be able to use slf4j to do this - but I can't
> find any actual documentation on HOW. Just lots of "yeah, it can do things
> like that". I've added slf4j-api.jar, slf4j-log4j12.jar and
> jul-to=slf4j.jar to my class path.
> >
> > Since this doesn't seem to be handling the JUL logging (still coming out
> in it's own format), there must be something specific that needs to be done
> to get things hooked up/started - but I haven't been able to find the docs
> on exactly WHAT is needed.
>
> Sounds like the notes in
> http://www.slf4j.org/api/org/slf4j/bridge/SLF4JBridgeHandler.html should
> do the trick.
> _______________________________________________
> slf4j-user mailing list
> slf4j-user@qos.ch
> http://mailman.qos.ch/mailman/listinfo/slf4j-user
>

[Attachment #5 (text/html)]

<div dir="ltr">Thanks, that fixed it!<br></div><div class="gmail_extra"><br><br><div \
class="gmail_quote">On Tue, Dec 3, 2013 at 5:32 PM, Marshall Pierce <span \
dir="ltr">&lt;<a href="mailto:marshall@mpierce.org" \
target="_blank">marshall@mpierce.org</a>&gt;</span> wrote:<br> <blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Dec 3, 2013, at 5:27 \
PM, John Lussmyer &lt;<a href="mailto:john@teamunify.com">john@teamunify.com</a>&gt; \
wrote:<br>

<br>
&gt; We have a large existing app that has several HttpServlets. These are currently \
written using log4j logging - except a few of the libs that were written with \
Java.util.logging uses.<br> &gt;<br>
&gt; I&#39;d REALLY REALLY like to get them all going through the log4j handling and \
output formatting.<br> &gt;<br>
&gt; It looks like I should be able to use slf4j to do this - but I can&#39;t find \
any actual documentation on HOW. Just lots of &quot;yeah, it can do things like \
that&quot;. I&#39;ve added slf4j-api.jar, slf4j-log4j12.jar and jul-to=slf4j.jar to \
my class path.<br>

&gt;<br>
&gt; Since this doesn&#39;t seem to be handling the JUL logging (still coming out in \
it&#39;s own format), there must be something specific that needs to be done to get \
things hooked up/started - but I haven&#39;t been able to find the docs on exactly \
WHAT is needed.<br>

<br>
</div></div>Sounds like the notes in <a \
href="http://www.slf4j.org/api/org/slf4j/bridge/SLF4JBridgeHandler.html" \
target="_blank">http://www.slf4j.org/api/org/slf4j/bridge/SLF4JBridgeHandler.html</a> \
should do the trick.<br>

_______________________________________________<br>
slf4j-user mailing list<br>
<a href="mailto:slf4j-user@qos.ch">slf4j-user@qos.ch</a><br>
<a href="http://mailman.qos.ch/mailman/listinfo/slf4j-user" \
target="_blank">http://mailman.qos.ch/mailman/listinfo/slf4j-user</a><br> \
</blockquote></div><br></div>



_______________________________________________
slf4j-user mailing list
slf4j-user@qos.ch
http://mailman.qos.ch/mailman/listinfo/slf4j-user

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic