From b57dcec6ad06034d06026db39fbb20b2942dac20 Mon Sep 17 00:00:00 2001 From: swaggboi Date: Sun, 8 Oct 2023 10:45:47 -0400 Subject: [PATCH] Configure logging --- lib/Hyperlink-Redirect.rakumod | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/Hyperlink-Redirect.rakumod b/lib/Hyperlink-Redirect.rakumod index a5b6819..06e7d32 100644 --- a/lib/Hyperlink-Redirect.rakumod +++ b/lib/Hyperlink-Redirect.rakumod @@ -1,4 +1,6 @@ use Humming-Bird::Core; +use Humming-Bird::Middleware; +use Humming-Bird::Advice; use Template6; use Base64; use Libarchive::Filter :gzip; @@ -10,6 +12,10 @@ use Libarchive::Filter :gzip; my $templates = Template6.new; $templates.add-path: 'templates'; +# Logging +middleware &middleware-logger; +advice &advice-logger; + # Must set the root path lest yet miss setting $!root my $router = Router.new(root => '/');