[slf4j-user] Maven logging binding for SLF4J?

cliff.meyers cliff.meyers at gmail.com
Wed Aug 24 20:16:58 CEST 2011


Hi Ceki,

To me the value add is to be able to execute code already using SLF4J
from a Maven plugin and view its output in the console.  For example,
I am working on a code generator project that has a large core module
and separate modules which expose the API as an Ant Task and a Maven
Mojo.  The core module uses SLF4J and I'd like to be able to see its
logging output in the console when the Maven plugin is invoked.  So
far Yegor's code seems to be the only way to do that.

If I was writing a Maven plugin (and only a Maven plugin) from
scratch, I agree that I would tend to just using the Maven Log API
directly.

-Cliff


On Wed, Aug 24, 2011 at 4:13 AM, Ceki Gulcu [via Slf4J]
<ml-node+3280344-469721106-417104 at n3.nabble.com> wrote:
> Hello,
>
>  From what I could gather it looks like Yegor's work [1] redirects
> logging calls made with SLF4J's API to Maven's logging. What is the
> value add in that? I guess org.slf4j.Logger is a little friendlier than
> org.apache.maven.plugin.logging.Log but what else?
>
> Another approach would be to redirect calls made to o.a.maven.p.l.Log to
> SLF4J unleashing the power of a full-fledged logging backend.
>
> WDYT?
>
> [1]
> http://trac.fazend.com/rempl/browser/rempl/trunk/plugins/plugin-maven/src/main/java/org/slf4j/impl
>
>
> On 24/08/2011 9:10 AM, Erik Boye wrote:
>> Hello Cliff,
>>
>> Sorry late reply - I just got back from vacation.
>>
>> There has been no progress on this issue since my last e-mail.
>> I am waiting for feedback from Ceki to eventually take this further.
>>
>> Regards,
>> Erik
>>
>> -----Original Message-----
>> From: [hidden email] [mailto:[hidden email]] On Behalf Of cliff.meyers
>> Sent: 24. juli 2011 16:53
>> To: [hidden email]
>> Subject: Re: [slf4j-user] Maven logging binding for SLF4J?
>>
>>
>> Erik Boye wrote:
>>>
>>> I am happy to hear that you think SLF4J could be a good home for this
>>> code. To get the ball running I would suggest the following:
>>> - Name the project slf4j-maven, slf4j-mojo or slf4j-maven-logging.
>>> - The initial project structure and code could be based on Yegors
>>> codebase
>>> - as I think it is a better starting point, compared to my code.
>>>
>>>
>>> Please forward any updates on this to me (or the SLF4J users list).
>>>
>>
>> Hello, I was wondering if this effort ever moved forward at all?  I am
>> writing a Mojo which depends on code that uses SLF4J.  I would be
>> interested
>> in helping out with this if others have a similar interest.
>>
>> Thanks,
>>
>> Cliff
>>
>
> --
> QOS.ch, main sponsor of cal10n, logback and slf4j open source projects,
> is looking to hire talented software developers. For further details,
> see http://logback.qos.ch/job.html
> _______________________________________________
> slf4j-user mailing list
> [hidden email]
> http://qos.ch/mailman/listinfo/slf4j-user
>
>
> ________________________________
> If you reply to this email, your message will be added to the discussion
> below:
> http://slf4j.42922.n3.nabble.com/Maven-logging-binding-for-SLF4J-tp2783905p3280344.html
> To unsubscribe from Maven logging binding for SLF4J?, click here.


--
View this message in context: http://slf4j.42922.n3.nabble.com/Maven-logging-binding-for-SLF4J-tp2783905p3281713.html
Sent from the slf4j - user mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://qos.ch/pipermail/slf4j-user/attachments/20110824/9091f1e8/attachment.html>


More information about the slf4j-user mailing list