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