[slf4j-user] Maven logging binding for SLF4J?
Erik Boye
Erik.Boye at statnett.no
Wed Apr 6 10:11:47 CEST 2011
Hi Ceki,
Thanks for your quick reply.
It seems like Yegors code has been moved, but I managed to find what seems to be the new location:
http://trac.fazend.com/rempl/browser/rempl/trunk/rempl/rempl-plugins/rempl-maven-plugin/
I had quick a look at the code, and it seems like Yegor is using more or less the same approach as me to initialize the logging binding. Apart from the initialization, the code is fairly trivial anyway. The initialization might be possible to improve (it currently requires explicit programmatic initialization from the mojo), but I do not see clearly how. Maybe Ceki, from your experience with logging frameworks, have any ideas?
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).
Best regards,
Erik
-----Original Message-----
From: slf4j-user-bounces at qos.ch [mailto:slf4j-user-bounces at qos.ch] On Behalf Of Ceki Gulcu
Sent: 6. april 2011 09:27
To: User list for the slf4j project
Subject: Re: [slf4j-user] Maven logging binding for SLF4J?
On 06.04.2011 08:32, Erik Boye wrote:
> Hi,
>
> I am implementing a Maven plugin based on code that uses the SLF4J API
> for logging. A Maven plugin should forward all its log statements to the
> Maven log system, so I have been trying to find a Maven logging binding
> for SLF4J. I cannot imagine I am the only one with this requirement, but
> so far no luck...
>
> About logging from Maven plugins:
>
> http://sonatype.com/books/maven-book/reference/writing-plugins-sect-logging.html
>
> Does anyone have any idea on how to achieve what I want? I have
> temporary implemented an SLF4J binding for Maven logging. It is working,
> but I am not satisfied with the log binding initialization, which is
> currently based on nasty static fields and methods. Please let me know
> if anyone is interested in having a look at the code, and I will send it
> privately.
>
> If a SLF4J binding for Maven logging is the only way to achieve this, I
> would like to find a "home" for the code. Could this "home" be the SLF4J
> community, or is this to specific to be part of the SLF4J family of log
> implementations?
>
> Best regards,
>
> Erik
>
Hi Eric,
Yegor Bugayenko apaarently had a similar idea:
http://trac.fazend.com/rempl/browser/rempl/trunk/plugins/plugin-maven/src/main/java/org/slf4j/impl
I think SLF4J is a good home for such code. We would need to agree on
the project name and structure and get the ball rolling.
Cheers,
--
Ceki
QOS.ch, main sponsor of cal10n, logback and slf4j open source projects,
is looking to hire talented software engineers. For further details, see
http://logback.qos.ch/job.html
_______________________________________________
slf4j-user mailing list
slf4j-user at qos.ch
http://qos.ch/mailman/listinfo/slf4j-user
Statnett SF, Tel. head office +47 23 90 30 00, Enterprise No. NO 962 986 633 VAT, www.statnett.no, firmapost at statnett.no
_________________________________________________________________
This e-mail and any attached files are confidential and may be legally privileged. If you have received this transmission in error please notify the sender by reply e-mail immediately and then delete the e-mail.
E-mail transmission cannot be guaranteed to be secure or error free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete. If verification is required please request a hard copy version. This e-mail message has been virus checked by the antivirus programs used by Statnett SF.
_________________________________________________________________
More information about the slf4j-user
mailing list