summaryrefslogtreecommitdiff
path: root/lib/Dancer
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Dancer')
-rw-r--r--lib/Dancer/Logger/PSGI.pm7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/Dancer/Logger/PSGI.pm b/lib/Dancer/Logger/PSGI.pm
index 2bcb452..3f8c216 100644
--- a/lib/Dancer/Logger/PSGI.pm
+++ b/lib/Dancer/Logger/PSGI.pm
@@ -39,10 +39,15 @@ In your application
warning "this is a warning"
-In your app.psgi
+Then, in your app.psgi
$app = builder { enable "ConsoleLogger"; $app; }
+or in your environment file:
+
+ - plack_middlewares:
+ - ConsoleLogger
+
With L<Plack::Middleware::ConsoleLogger>, all your log will be send to the javascript console of your browser.
=head1 DESCRIPTION