diff options
author | franck cuny <franck@lumberjaph.net> | 2010-04-17 13:25:57 +0200 |
---|---|---|
committer | franck cuny <franck@lumberjaph.net> | 2010-04-17 13:25:57 +0200 |
commit | c39591d0cb9f996c026b9bc110bc7d929c3b7498 (patch) | |
tree | c77653639c4cc6d0558ad76e4e564f80cab2cb62 | |
parent | log to psgix.logger (diff) | |
download | dancer-logger-psgi-c39591d0cb9f996c026b9bc110bc7d929c3b7498.tar.gz |
readme
-rw-r--r-- | README | 25 |
1 files changed, 22 insertions, 3 deletions
diff --git a/README b/README index 04e3ba5..52cd616 100644 --- a/README +++ b/README @@ -1,16 +1,35 @@ NAME - Dancer::Logger::PSGI - + Dancer::Logger::PSGI - PSGI logger handler for Dancer SYNOPSIS - use Dancer::Logger::PSGI; + In your Dancer's configuration file: + + logger: PSGI + + In your application + + warning "this is a warning" + + In your app.psgi + + $app = builder { enable "ConsoleLogger"; $app; } + + With Plack::Middleware::ConsoleLogger, all your log will be send to the + javascript console of your browser. DESCRIPTION - Dancer::Logger::PSGI is + This class is an interface between your Dancer's application and + psgix.logger. Message will be logged in whatever logger you decided to + use in your Plack handler. If no logger is defined, nothing will be + logged. AUTHOR franck cuny <franck@lumberjaph.net> SEE ALSO + Plack::Middleware::ConsoleLogger, Plack::Middleware::NullLogger, + Plack::Middleware::Log4perl. + LICENSE This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. |