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

NAME

Mojolicious::Plugin::ChromeLogger - Show Mojolicious logs in Google Chrome console

DESCRIPTION

Mojolicious::Plugin::ChromeLogger pushes Mojolicious log messages to Google Chrome console. Works with any types of responses(even with JSON). To view logs in Google Chrome you should install ChromeLogger extenstion. Logging works only in development mode.

See details here http://craig.is/writing/chrome-logger

USAGE

    use Mojolicious::Lite;

    plugin 'ChromeLogger';

    get '/' => sub {
        my $self = shift;

        app->log->debug('Some debug here');
        app->log->info('Some info here');
        app->log->warn('Some warn here');
        app->log->error('Some error here');
        app->log->fatal('Some fatal here');

        $self->render( text => 'Open Google Chrome console' );
    };

    app->start;

METHODS

Mojolicious::Plugin::ChromeLogger inherits all methods from Mojolicious::Plugin and implements the following new ones.

register

    $plugin->register;

Register condition in Mojolicious application.

SEE ALSO

Mojolicious::Plugin::ConsoleLogger

DEVELOPMENT

https://github.com/koorchik/Mojolicious-Plugin-ChromeLogger

CREDITS

Inspired by Mojolicious::Plugin::ConsoleLogger

AUTHORS

Viktor Turskyi koorchik@cpan.org