diff options
| author | Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2025-12-19 11:10:27 +0000 |
|---|---|---|
| committer | Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2025-12-19 11:10:27 +0000 |
| commit | 2342e946a9e444f81b41ea0b20d82723d89feba4 (patch) | |
| tree | 592858e23cead7d54026bbacde416fd04eb04816 | |
| parent | fb0252eec6c16f5a329546876f470239aabd95eb (diff) | |
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.
| -rw-r--r-- | devel/Makefile | 1 | ||||
| -rw-r--r-- | devel/p5-Dancer2-Plugin-LogReport/Makefile | 25 | ||||
| -rw-r--r-- | devel/p5-Dancer2-Plugin-LogReport/distinfo | 3 | ||||
| -rw-r--r-- | devel/p5-Dancer2-Plugin-LogReport/pkg-descr | 18 | ||||
| -rw-r--r-- | devel/p5-Dancer2-Plugin-LogReport/pkg-plist | 15 |
5 files changed, 62 insertions, 0 deletions
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.gz |
