Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Show Mojolicious log messages in browser console (firebug, webkit dev tools)
Perl
Branch: master

This branch is 4 commits ahead, 9 commits behind tempire:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib/Mojolicious/Plugin
t
Changes
Mojolicious-Plugin-ConsoleLogger-0.04.tar.gz
README.pod
dist.ini

README.pod

NAME

Mojolicious::Plugin::ConsoleLogger - Browser console logging

DESCRIPTION

Browser console logging

USAGE

    use Mojolicious::Lite;

    plugin 'console_logger';

    get '/' => sub {

        app->log->debug("Here I am!");
        app->log->error("This is bad");
        app->log->fatal("This is really bad");
        app->log->info("This isn't bad at all");
        app->log->info({json => 'structure'});

        shift->render(text => 'Ahm in ur browzers, logginz ur console');
    };

    app->start;

METHODS

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

register

    $plugin->register;

Register condition in Mojolicious application.

SEE ALSO

Mojolicious

DEVELOPMENT

http://github.com/tempire/mojolicious-plugin-consolelogger

VERSION

0.04

CREDITS

Implementation stolen from Plack::Middleware::ConsoleLogger

AUTHOR

Glen Hinkle tempire@cpan.org

Andrew Kirkpatrick

Something went wrong with that request. Please try again.