NAME

Kelp::Module::Logger - Logger for Kelp applications

SYNOPSIS

 # conf/config.pl
 {
     modules => ['Logger'],
     modules_init => {
         Logger => {
             outputs => [
                 [ 'Screen',  min_level => 'debug', newline => 1 ],
             ]
         },
     },
 }

# lib/MyApp.pm
sub run {
     my $self = shift;
     my $app = $self->SUPER::run(@_);
     ...;
     $app->info('Kelp is ready to rock!');
     return $app;
}

DESCRIPTION

This module provides an log interface for Kelp web application. It uses Log::Dispatcher as underlying logging module.

REGISTERED METHODS

debug

info

error