commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gilles <gil...@harfang.homelinux.org>
Subject Re: [crypto] Logging dependency
Date Fri, 10 Jun 2016 09:46:37 GMT
Hi.

On Fri, 10 Jun 2016 11:12:23 +0200, Torsten Curdt wrote:
> FWIW
>
> I am not a fan of libraries and frameworks just logging away anyway.
>
> What I usually do this days:
> Have an interface in the library itself. Along the lines of
>
>     public interface Console {
>         void debug( String message );
>     }

What you do here (simple usage) is the same as what "slf4j-api" or
"log4j2-api" do.

Whether the library developers choose one or the other, the application
developers still can choose one or the other framework (as both provide
a bridge to the other one).

Regards,
Gilles

> and then have the user of the library pass in an implementation of 
> his/her
> liking.
> Let others do the log framework discussions.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message