The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Plack::Middleware::ChromeLogger - The Chrome Logger Middleware for Plack

SYNOPSIS

    use Plack::Builder;

    builder {
      enable "ChromeLogger";
      sub {
        $env->{"psgix.chrome_logger"}->info("foo");
        [200, [], ["OK"]];
      };
    };

DESCRIPTION

Plack::Middleware::ChromeLogger is the Chrome Logger Middleware for Plack.

See Web::ChromeLogger, http://craig.is/writing/chrome-logger for detail

METHODS

prepare_app
call

MIDDLEWARE OPTIONS

json_encoder

pass to Web::ChromeLogger. Who need to set this parameter ?

enable_in_production

By default this middleware is turned off in production environment. If you set enable_in_production to TRUE value, then chrome logger will be enabled in production environment.

disabled

turn off this middleware

REPOSITORY

Plack::Middleware::ChromeLogger is hosted on github <http://github.com/bayashi/Plack-Middleware-ChromeLogger>

Welcome your patches and issues :D

AUTHOR

Dai Okabayashi <bayashi@cpan.org>

SEE ALSO

Web::ChromeLogger

LICENSE

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.