NAME

Raisin::Plugin::Logger - Logger plugin for Raisin.

SYNOPSIS

plugin 'Logger';
logger(info => 'Hello!');

DESCRIPTION

Borrowed from Kelp::Module::Logger.

Provides logger method which is an alias for Log::Dispatch log method.

$self->{logger}->log(
    level   => $level,
    message => sprintf("%s - %s - %s\n",
        $date, $level, ref($_) ? Dumper($_) : $_)
);