| 1 |
Source: libplack-middleware-logerrors-perl |
| 2 |
Section: perl |
| 3 |
Build-Depends: |
| 4 |
debhelper-compat (= 13), |
| 5 |
libhttp-message-perl <!nocheck>, |
| 6 |
libmodule-build-tiny-perl, |
| 7 |
libplack-perl <!nocheck>, |
| 8 |
libtest-fatal-perl <!nocheck>, |
| 9 |
perl, |
| 10 |
Maintainer: Debian Perl Group <[email protected]> |
| 11 |
Uploaders: |
| 12 |
Jonas Smedegaard <[email protected]>, |
| 13 |
Standards-Version: 4.7.3 |
| 14 |
Vcs-Git: https://salsa.debian.org/perl-team/modules/packages/libplack-middleware-logerrors-perl.git |
| 15 |
Vcs-Browser: https://salsa.debian.org/perl-team/modules/packages/libplack-middleware-logerrors-perl |
| 16 |
Homepage: https://metacpan.org/pod/Plack::Middleware::LogErrors |
| 17 |
Testsuite: autopkgtest-pkg-perl |
| 18 |
|
| 19 |
Package: libplack-middleware-logerrors-perl |
| 20 |
Architecture: all |
| 21 |
Depends: |
| 22 |
libplack-perl, |
| 23 |
${misc:Depends}, |
| 24 |
${perl:Depends}, |
| 25 |
Enhances: |
| 26 |
libplack-middleware-logwarn-perl, |
| 27 |
libplack-perl, |
| 28 |
Description: map psgi.errors to psgix.logger or other logger |
| 29 |
psgi.errors defaults to stderr in most backends, |
| 30 |
which results in content going somewhere unhelpful |
| 31 |
like the server console. |
| 32 |
. |
| 33 |
Plack::Middleware::LogErrors simply remaps the psgi.errors stream |
| 34 |
to the psgix.logger stream, |
| 35 |
or an explicit logger that you provide. |
| 36 |
. |
| 37 |
This is especially handy |
| 38 |
when used in combination with other middlewares |
| 39 |
such as Plack::Middleware::LogWarn |
| 40 |
(which diverts Perl warnings to psgi.errors); |
| 41 |
Plack::Middleware::HTTPExceptions |
| 42 |
(which diverts uncaught exceptions to psgi.errors); |
| 43 |
and Plack::Middleware::AccessLog, |
| 44 |
which defaults to psgi.errors when not passed a logger -- |
| 45 |
which is also automatically applied via plackup |
| 46 |
(so if you provided no --access-log option indicating a filename, |
| 47 |
psgi.errors is used). |
| 48 |
. |
| 49 |
Plack is a set of tools similar to Ruby's Rack |
| 50 |
or Python's Paste for WSGI. |
| 51 |
It implements the Perl Server Gateway Interface (PSGI) |
| 52 |
standard interface, |
| 53 |
which allows developers to decouple their web application framework |
| 54 |
from the local web server environment. |