Package Info

perl-Plack-Middleware-LogErrors


Map psgi.errors to psgix.logger or other logger


Development/Libraries/Perl

'psgi.errors' defaults to 'stderr' in most backends, which results in content going somewhere unhelpful like the server console.

This middleware simply remaps the 'psgi.errors' stream to the 'psgix.logger' stream, or an explicit logger that you provide.

This is especially handy when used in combination with other middlewares such as the Plack::Middleware::LogWarn manpage (which diverts Perl warnings to 'psgi.errors'); the Plack::Middleware::HTTPExceptions manpage (which diverts uncaught exceptions to 'psgi.errors'); and the Plack::Middleware::AccessLog manpage, which defaults to 'psgi.errors' when not passed a logger -- which is also automatically applied via the plackup manpage (so if you provided no '--access-log' option indicating a filename, 'psgi.errors' is used).


License: Artistic-1.0 or GPL-1.0+
URL: http://search.cpan.org/dist/Plack-Middleware-LogErrors/

Categories

Releases

Package Version Update ID Released Package Hub Version Platforms Subpackages
0.002-bp156.3.1 info GA Release 2023-07-22 15 SP6
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-Plack-Middleware-LogErrors
0.002-bp155.2.8 info GA Release 2023-05-17 15 SP5
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-Plack-Middleware-LogErrors
0.002-bp154.1.17 info GA Release 2022-05-09 15 SP4
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-Plack-Middleware-LogErrors
0.002-bp153.1.12 info GA Release 2021-03-06 15 SP3
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-Plack-Middleware-LogErrors
0.002-bp152.3.14 info GA Release 2020-04-17 15 SP2
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-Plack-Middleware-LogErrors
0.002-bp151.3.1 info GA Release 2019-07-16 15 SP1
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-Plack-Middleware-LogErrors
0.002-bp151.2.11 info GA Release 2019-05-18 15 SP1
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-Plack-Middleware-LogErrors
0.002-bp150.2.4 info GA Release 2018-07-30 15
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-Plack-Middleware-LogErrors