NAME

Timed::Logger::Dancer::AdoptPlack - Use Plack Timed::Logger Middleware with Dancer

VERSION

Version 0.0.5

SYNOPSIS

use Timed::Logger::Dancer::AdoptPlack;

my $logger = Timed::Logger::Dancer::AdoptPlack->logger;
my $log_entry = $logger->start('DB');
...

DESCRIPTION

This module bridges Plack middleware Plack::Middleware::Timed::Logger with Dancer application. It provides method of getting and instance of Timed::Logger to log events. Those events can be later displayed by Plack::Middleware::Debug::Timed::Logger debug panel.

This module was inspired by Catalyst::TraitFor::Model::DBIC::Schema::QueryLog::AdoptPlack.

SUBROUTINES

logger

Static method to get a Timed::Logger instance.

SEE ALSO

Timed::Logger, Plack::Middleware::Timed::Logger, Plack::Middleware::Debug::Timed::Logger, Plack::Middleware::Debug

AUTHOR

Nikolay Martynov, <kolya at cpan.org>

BUGS

Please report any bugs or feature requests to bug-timed-logger-dancer-adoptplack at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Timed-Logger-Dancer-AdoptPlack. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

perldoc Timed::Logger::Dancer::AdoptPlack

You can also look for information at:

ACKNOWLEDGEMENTS

Logan Bell and Belden Lyman.

LICENSE AND COPYRIGHT

Copyright 2013 Nikolay Martynov and Shutterstock Inc (http://shutterstock.com). All rights reserved.

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.