Mojolicious::Plugin::ConsoleLogger - Console logging in your browser
Mojolicious::Plugin::ConsoleLogger pushes Mojolicious session, stash, config, and log messages to the browser's console tool.
* Logging operates only in development mode.
use Mojolicious::Lite; plugin 'ConsoleLogger'; 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;
Mojolicious::Plugin::ConsoleLogger inherits all methods from Mojolicious::Plugin and implements the following new ones.
register
$plugin->register;
Register condition in Mojolicious application.
Mojolicious
http://github.com/tempire/mojolicious-plugin-consolelogger
0.06
Implementation stolen from Plack::Middleware::ConsoleLogger
Glen Hinkle tempire@cpan.org
Andrew Kirkpatrick
Zhenyi Zhou
To install Mojolicious::Plugin::ConsoleLogger, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mojolicious::Plugin::ConsoleLogger
CPAN shell
perl -MCPAN -e shell install Mojolicious::Plugin::ConsoleLogger
For more information on module installation, please visit the detailed CPAN module installation guide.