NAME
Mojolicious::Plugin::DumpyLog - Automatically runs Data::Dumper against the last element in the list passed to any ->log->method() if it's a ref.
VERSION
version 0.01
SYNOPSIS
package App;
use Mojo::Base 'Mojolicious';
sub startup {
my $self = shift;
$self->plugin( 'Mojolicious::Plugin::DumpyLog' );
# ...
}
then
package App::Example;
use Mojo::Base 'Mojolicious::Controller';
sub test {
my $self = shift;
my %foo = ( bar => 'baz' );
$self->debug( "foo", "bar", "baz", \%foo );
$self->render( json => [] );
}
SUPPORT
Bugs / Feature Requests
Please report any bugs or feature requests through the issue tracker at https://github.com/sharabash/mojolicious-plugin-dumpylog/issues. You will be notified automatically of any progress on your issue.
Source Code
This is open source software. The code repository is available for public review and contribution under the terms of the license.
https://github.com/sharabash/mojolicious-plugin-dumpylog
git clone git://github.com/sharabash/mojolicious-plugin-dumpylog.git
AUTHOR
Nour Sharabash <amirite@cpan.org>
CONTRIBUTOR
Nour Sharabash <nour.sharabash@gmail.com>
COPYRIGHT AND LICENSE
This software is copyright (c) 2014 by Nour Sharabash.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.