summary refs log tree commit diff
path: root/lib/Dancer
diff options
context:
space:
mode:
authorRichard Simões <rsimoes@cpan.org>2011-12-24 00:26:05 -0600
committerRichard Simões <rsimoes@cpan.org>2011-12-24 00:27:26 -0600
commitd5e13787a99e9c1d45bd0b0f6ed4efd036ed7532 (patch)
treea2f79f49c17fcccae6f7da1eaf2eaa9ac76b238a /lib/Dancer
parentbump version for release (diff)
downloaddancer-logger-psgi-d5e13787a99e9c1d45bd0b0f6ed4efd036ed7532.tar.gz
bring over POD changes from 0.03 master
Diffstat (limited to 'lib/Dancer')
-rw-r--r--lib/Dancer/Logger/PSGI.pm25
1 files changed, 16 insertions, 9 deletions
diff --git a/lib/Dancer/Logger/PSGI.pm b/lib/Dancer/Logger/PSGI.pm
index 25e8f5f..8749d19 100644
--- a/lib/Dancer/Logger/PSGI.pm
+++ b/lib/Dancer/Logger/PSGI.pm
@@ -30,25 +30,32 @@ sub _log {
 
 =head1 SYNOPSIS
 
-In your Dancer's configuration file:
+In your Dancer's environment file:
 
     logger: PSGI
+    - plack_middlewares:
+      -
+        - ConsoleLogger
 
 In your application
 
     warning "this is a warning"
 
-Then, in your app.psgi
+With L<Plack::Middleware::ConsoleLogger>, all your log will be send to the JavaScript console of your browser.
 
-    $app = builder { enable "ConsoleLogger"; $app; }
+=head1 DESCRIPTION
 
-or in your environment file:
+This class is an interface between your Dancer's application and B<psgix.logger>. Message will be logged in whatever logger you decided to use in your L<Plack> handler. If no logger is defined, nothing will be logged.
 
-    - plack_middlewares:
-      - ConsoleLogger
+=head1 AUTHOR
 
-With L<Plack::Middleware::ConsoleLogger>, all your log will be send to the JavaScript console of your browser.
+franck cuny <franck@lumberjaph.net>
 
-=head1 DESCRIPTION
+=head1 COPYRIGHT AND LICENSE
 
-This class is an interface between your Dancer's application and B<psgix.logger>. Message will be logged in whatever logger you decided to use in your L<Plack> handler. If no logger is defined, nothing will be logged.
+This software is copyright (c) 2010 by franck cuny.
+
+This is free software; you can redistribute it and/or modify it under
+the same terms as the Perl 5 programming language system itself.
+
+=cut