Use the new Logger plugin
This commit is contained in:
parent
a6cc0239ec
commit
a14d4f2aef
|
@ -1,6 +1,4 @@
|
||||||
use Humming-Bird::Core;
|
use Humming-Bird::Core;
|
||||||
use Humming-Bird::Middleware;
|
|
||||||
use Humming-Bird::Advice;
|
|
||||||
use Template::Mustache;
|
use Template::Mustache;
|
||||||
|
|
||||||
# Normally would 'use' local libs here for Controller and Model and
|
# Normally would 'use' local libs here for Controller and Model and
|
||||||
|
@ -11,9 +9,8 @@ use Hyperlink-Redirect::Helpers;
|
||||||
# Set things up (config stuff would go here?)
|
# Set things up (config stuff would go here?)
|
||||||
my $template = Template::Mustache.new: :from<../templates>;
|
my $template = Template::Mustache.new: :from<../templates>;
|
||||||
|
|
||||||
# Logging
|
# Plugins
|
||||||
middleware &middleware-logger;
|
plugin 'Logger';
|
||||||
advice &advice-logger;
|
|
||||||
|
|
||||||
# Must set the root path lest yet miss setting $!root
|
# Must set the root path lest yet miss setting $!root
|
||||||
my $router = Router.new(root => '/');
|
my $router = Router.new(root => '/');
|
||||||
|
|
Loading…
Reference in a new issue