Skip to content
Sections
>> Trisquel >> 软件包 >> nabia >> perl >> libplack-middleware-logerrors-perl
etiona  ] [  nabia  ] [  aramo  ]

软件包: libplack-middleware-logerrors-perl (0.003-1)

map psgi.errors to psgix.logger or other logger

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

Plack::Middleware::LogErrors 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 Plack::Middleware::LogWarn (which diverts Perl warnings to psgi.errors); Plack::Middleware::HTTPExceptions (which diverts uncaught exceptions to psgi.errors); and Plack::Middleware::AccessLog, which defaults to psgi.errors when not passed a logger -- which is also automatically applied via plackup (so if you provided no --access-log option indicating a filename, psgi.errors is used).

Plack is a set of tools similar to Ruby's Rack or Python's Paste for WSGI. It implements the Perl Server Gateway Interface (PSGI) standard interface, which allows developers to decouple their web application framework from the local web server environment.

其他与 libplack-middleware-logerrors-perl 有关的软件包

  • 依赖
  • 推荐
  • 建议
  • dep: libplack-perl
    interface between web servers and Perl web applications
  • dep: perl
    Larry Wall's Practical Extraction and Report Language

下载 libplack-middleware-logerrors-perl

下载可用于所有硬件架构的
硬件架构 软件包大小 安装后大小 文件
all 8.3 kB25 kB [文件列表]