ChromeLogger;
use Mojo::Base 'Mojolicious::Plugin';
use Mojo::ByteStream qw/b/;
use Mojo::JSON qw/encode_json/;
our $VERSION = 0.06;
has logs => sub { return [] };
my %types_map = (
'debug' =>
h @$rows, [[ $main_group ], undef, 'groupEnd'];
my $json = encode_json($data);
my $final_data = b($json)->b64_encode('');
$c->res->headers->add( 'X-ChromeLo
, stash, session and config to Google Chrome console. Works with all types of responses(including JSON).
To view logs in Google Chrome you should install ChromeLogger extenstion. Logging works only in