Leyland::Logger - Wrapper around Plack's logging middlewares
# in your app.psgi file builder { enable 'SomeLoggingMiddleware'; MyApp->to_app; }; # in your controllers $c->log->debug("Some debug message");
This package provides a simple wrapper around the Plack logging middleware used by your application. An object of this class is provided to the context object. Read Leyland::Manual::Logging to learn more.
An anonymous logging subroutine. This will be the psgix.logger subroutine automatically created by your selected logging middleware. If you haven't selected one, however, this class will create a default one that simply prints messages to standard output or standard error (as appropriate).
psgix.logger
This class provides methods for the following log levels:
trace
debug
info (with an inform alias)
notice
warning (with a warn alias)
error (with an err alias)
critical (with a crit and fatal aliases)
alert
emergency
All methods take the same parameters: a required $message string, and an optional \%data hash-ref. This is meant to be used by a logger such as Pye, so take a look at it to learn more.
$message
\%data
Ido Perlmuter, <ido at ido50.net>
<ido at ido50.net>
Please report any bugs or feature requests to bug-Leyland at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Leyland. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-Leyland at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Leyland::Logger
You can also look for information at:
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Leyland
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Leyland
CPAN Ratings
http://cpanratings.perl.org/d/Leyland
Search CPAN
http://search.cpan.org/dist/Leyland/
Copyright 2010-2014 Ido Perlmuter.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
To install Leyland, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Leyland
CPAN shell
perl -MCPAN -e shell install Leyland
For more information on module installation, please visit the detailed CPAN module installation guide.