Group
Extension

Matches 2

Dancer-Logger-ConsoleAggregator ( W/WW/WWOLF/Dancer-Logger-ConsoleAggregator-0.005.tar.gz, WWOLF, 2012; MetaCPAN )
Dancer-Logger-ConsoleAggregator/README.pod ( view source; MetaCPAN )
use this log module.  Then you can debug like this:

    debug { field1 => "data" };
    debug to_json({ field2 => "data" });
    debug "Raw Data";

And this module will log something like this:

    
Dancer-Logger-ConsoleAggregator ( W/WW/WWOLF/Dancer-Logger-ConsoleAggregator-0.005.tar.gz, WWOLF, 2012; MetaCPAN )
Dancer-Logger-ConsoleAggregator/lib/Dancer/Logger/ConsoleAggregator.pm ( view source; MetaCPAN )
er::Logger::ConsoleAggregator::VERSION = '0.005';
}
use Dancer::Hook;
use DateTime;
use JSON qw(to_json from_json);
use Try::Tiny;

use base 'Dancer::Logger::Abstract';

# ABSTRACT: Dancer Console Log
        $obj = ref $ev_res ? $ev_res : undef;
    };
    try {
        # If its json stringified
        $obj = from_json($message);
    } if !$obj;

    # If its just a string
    push( @$strings, $m
ERR _to_json($log_message) ."\n";
    }
    ($log_message, $strings) = ({}, []);
}

sub init {
    Dancer::Hook->new( 'after', sub {
        try { flush }
        catch { print STDERR _to_json({ LOG_E

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.