From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Woodcroft Subject: Re: [PATCH 1/3] gnu: Add perl-log-any. Date: Sun, 17 Jul 2016 13:04:48 +1000 Message-ID: <578AF5D0.7030604@uq.edu.au> References: <20160716182009.23643-1-alex@pompo.co> <20160716182009.23643-2-alex@pompo.co> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35627) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bOcO9-0003sQ-SL for guix-devel@gnu.org; Sat, 16 Jul 2016 23:05:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bOcO5-0004Ry-K7 for guix-devel@gnu.org; Sat, 16 Jul 2016 23:05:04 -0400 Received: from mailhub1.soe.uq.edu.au ([130.102.132.208]:56915 helo=newmailhub.uq.edu.au) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bOcO5-0004Rm-1n for guix-devel@gnu.org; Sat, 16 Jul 2016 23:05:01 -0400 In-Reply-To: <20160716182009.23643-2-alex@pompo.co> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Alex Sassmannshausen , guix-devel@gnu.org Thanks. I was in the process of packaging log4perl also, you beat me to it. On 17/07/16 04:20, Alex Sassmannshausen wrote: > * gnu/packages/perl.scm (perl-log-any): New variable. > --- > gnu/packages/perl.scm | 31 +++++++++++++++++++++++++++++++ > 1 file changed, 31 insertions(+) > > diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm > index aed2a61..486dbc2 100644 > --- a/gnu/packages/perl.scm > +++ b/gnu/packages/perl.scm > @@ -2939,6 +2939,37 @@ either uses the first module it finds or throws an error.") > versa.") > (license (package-license perl)))) > > +(define-public perl-log-any > + (package > + (name "perl-log-any") > + (version "1.040") > + (source > + (origin > + (method url-fetch) > + (uri (string-append "mirror://cpan/authors/id/D/DA/DAGOLDEN/Log-Any-" > + version ".tar.gz")) > + (sha256 > + (base32 > + "0r1q7cclgwl24gzdnjzvd8y0r7j17dngjk492x35w198zhdj2ncp")))) > + (build-system perl-build-system) > + (home-page "http://search.cpan.org/dist/Log-Any") > + (synopsis "Bringing loggers and listeners together") > + (description "Log::Any provides a standard log production API for > +modules. Log::Any::Adapter allows applications to choose the mechanism for log > +consumption, whether screen, file or another logging mechanism like > +Log::Dispatch or Log::Log4perl. > + > +A CPAN module uses Log::Any to get a log producer object. An application, in > +turn, may choose one or more logging mechanisms via Log::Any::Adapter, or none > +at all. > + > +Log::Any has a very tiny footprint and no dependencies beyond Perl 5.8.1, A reference to the specific Perl version is a bit out of place, no? Maybe 'no dependencies beyond Perl itself'. Otherwise LGTM. > +which makes it appropriate for even small CPAN modules to use. It defaults to > +'null' logging activity, so a module can safely log without worrying about > +whether the application has chosen (or will ever choose) a logging > +mechanism.") > + (license (package-license perl)))) > + > (define-public perl-log-report-optional > (package > (name "perl-log-report-optional")