Date: Fri, 19 Dec 2025 11:19:04 +0000 From: Po-Chuan Hsieh <sunpoet@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 2342e946a9e4 - main - devel/p5-Dancer2-Plugin-LogReport: Add p5-Dancer2-Plugin-LogReport 2.02 Message-ID: <694534a8.208dd.5f348d5e@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=2342e946a9e444f81b41ea0b20d82723d89feba4 commit 2342e946a9e444f81b41ea0b20d82723d89feba4 Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2025-12-19 11:10:27 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2025-12-19 11:10:27 +0000 devel/p5-Dancer2-Plugin-LogReport: Add p5-Dancer2-Plugin-LogReport 2.02 Dancer2::Plugin::LogReport provides easy access to the extensive logging facilities provided by Log::Report. Along with Dancer2::Logger::LogReport, this brings together all the internal Dancer2 logging, handling for expected and unexpected exceptions, translations and application logging. Logging is extremely flexible using many of the available dispatchers. Multiple dispatchers can be used, each configured separately to display different messages in different formats. By default, messages are logged to a session variable for display on a webpage, and to STDERR. Messages within this plugin use the extended Dancer2::Logger::LogReport::Message class rather than the standard Log::Report::Message class. Note that it is currently recommended to use the plugin in all apps within a Dancer2 program, not only some. Therefore, wherever you use Dancer2 you should also use Dancer2::Plugin::LogReport. This does not apply if using the same app name (use Dancer2 appname, 'Already::Exists'). In all other modules, you can just use Log::Report. --- devel/Makefile | 1 + devel/p5-Dancer2-Plugin-LogReport/Makefile | 25 +++++++++++++++++++++++++ devel/p5-Dancer2-Plugin-LogReport/distinfo | 3 +++ devel/p5-Dancer2-Plugin-LogReport/pkg-descr | 18 ++++++++++++++++++ devel/p5-Dancer2-Plugin-LogReport/pkg-plist | 15 +++++++++++++++ 5 files changed, 62 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 530be7d511be..20541ced546c 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -2234,6 +2234,7 @@ SUBDIR += p5-Daemon-Control SUBDIR += p5-Dancer-Debug SUBDIR += p5-Dancer-Logger-Syslog + SUBDIR += p5-Dancer2-Plugin-LogReport SUBDIR += p5-Danga-Socket SUBDIR += p5-Danga-Socket-Callback SUBDIR += p5-Data-ACL diff --git a/devel/p5-Dancer2-Plugin-LogReport/Makefile b/devel/p5-Dancer2-Plugin-LogReport/Makefile new file mode 100644 index 000000000000..7401393f89d7 --- /dev/null +++ b/devel/p5-Dancer2-Plugin-LogReport/Makefile @@ -0,0 +1,25 @@ +PORTNAME= Dancer2-Plugin-LogReport +PORTVERSION= 2.02 +CATEGORIES= devel perl5 +MASTER_SITES= CPAN +MASTER_SITE_SUBDIR= CPAN:MARKOV +PKGNAMEPREFIX= p5- + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Logging, exceptions and translations in Dancer2 via Log::Report +WWW= https://metacpan.org/dist/Dancer2-Plugin-LogReport + +LICENSE= ART10 GPLv1+ +LICENSE_COMB= dual + +BUILD_DEPENDS= ${RUN_DEPENDS} +RUN_DEPENDS= p5-Dancer2>=0.207:www/p5-Dancer2 \ + p5-Log-Report>=1.42:devel/p5-Log-Report \ + p5-Log-Report-Template>=0:devel/p5-Log-Report-Template + +USES= perl5 +USE_PERL5= configure + +NO_ARCH= yes + +.include <bsd.port.mk> diff --git a/devel/p5-Dancer2-Plugin-LogReport/distinfo b/devel/p5-Dancer2-Plugin-LogReport/distinfo new file mode 100644 index 000000000000..2be7c4094535 --- /dev/null +++ b/devel/p5-Dancer2-Plugin-LogReport/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1766036333 +SHA256 (Dancer2-Plugin-LogReport-2.02.tar.gz) = ec4801f59caa57aa37d47f90fa14f194a47b5a5335a0b3d56341923961b4d2b8 +SIZE (Dancer2-Plugin-LogReport-2.02.tar.gz) = 22486 diff --git a/devel/p5-Dancer2-Plugin-LogReport/pkg-descr b/devel/p5-Dancer2-Plugin-LogReport/pkg-descr new file mode 100644 index 000000000000..4c6ba6e9db83 --- /dev/null +++ b/devel/p5-Dancer2-Plugin-LogReport/pkg-descr @@ -0,0 +1,18 @@ +Dancer2::Plugin::LogReport provides easy access to the extensive logging +facilities provided by Log::Report. Along with Dancer2::Logger::LogReport, this +brings together all the internal Dancer2 logging, handling for expected and +unexpected exceptions, translations and application logging. + +Logging is extremely flexible using many of the available dispatchers. Multiple +dispatchers can be used, each configured separately to display different +messages in different formats. By default, messages are logged to a session +variable for display on a webpage, and to STDERR. + +Messages within this plugin use the extended Dancer2::Logger::LogReport::Message +class rather than the standard Log::Report::Message class. + +Note that it is currently recommended to use the plugin in all apps within a +Dancer2 program, not only some. Therefore, wherever you use Dancer2 you should +also use Dancer2::Plugin::LogReport. This does not apply if using the same app +name (use Dancer2 appname, 'Already::Exists'). In all other modules, you can +just use Log::Report. diff --git a/devel/p5-Dancer2-Plugin-LogReport/pkg-plist b/devel/p5-Dancer2-Plugin-LogReport/pkg-plist new file mode 100644 index 000000000000..76df6134d373 --- /dev/null +++ b/devel/p5-Dancer2-Plugin-LogReport/pkg-plist @@ -0,0 +1,15 @@ +%%SITE_PERL%%/Dancer/Logger/LogReport.pm +%%SITE_PERL%%/Dancer/Logger/LogReport.pod +%%SITE_PERL%%/Dancer2/Logger/LogReport.pm +%%SITE_PERL%%/Dancer2/Logger/LogReport.pod +%%SITE_PERL%%/Dancer2/Plugin/LogReport.pm +%%SITE_PERL%%/Dancer2/Plugin/LogReport.pod +%%SITE_PERL%%/Dancer2/Plugin/LogReport/Message.pm +%%SITE_PERL%%/Dancer2/Plugin/LogReport/Message.pod +%%SITE_PERL%%/Dancer2/Template/TTLogReport.pm +%%SITE_PERL%%/Dancer2/Template/TTLogReport.pod +%%PERL5_MAN3%%/Dancer2::Logger::LogReport.3.gz +%%PERL5_MAN3%%/Dancer2::Plugin::LogReport.3.gz +%%PERL5_MAN3%%/Dancer2::Plugin::LogReport::Message.3.gz +%%PERL5_MAN3%%/Dancer2::Template::TTLogReport.3.gz +%%PERL5_MAN3%%/Dancer::Logger::LogReport.3.gzhome | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?694534a8.208dd.5f348d5e>
