Dancer2::Plugin::LogContextual - wrap a Dancer2 plack app in the configured Log::Contextual logger
version 1.152121
use Dancer2; use Dancer2::Plugin::LogContextual; use Log::Contextual ':log'; any '/' => sub { log_error "aaaah"; # logs via lc_logger below }; set lc_logger => MyLCLogger->new; my $app = to_app; # the logger above will now be active for every route # dispatched by this app and every function called # therein
Please report any bugs or feature requests through the issue tracker at http://rt.cpan.org/Public/Dist/Display.html?Name=Dancer2-Plugin-LogContextual. You will be notified automatically of any progress on your issue.
This is open source software. The code repository is available for public review and contribution under the terms of the license.
https://github.com/wchristian/Dancer2-Plugin-LogContextual
git clone https://github.com/wchristian/Dancer2-Plugin-LogContextual.git
Christian Walde <walde.christian@gmail.com>
Christian Walde has dedicated the work to the Commons by waiving all of his or her rights to the work worldwide under copyright law and all related or neighboring legal rights he or she had in the work, to the extent allowable by law.
Works under CC0 do not require attribution. When citing the work, you should not imply endorsement by the author.
To install Dancer2::Plugin::LogContextual, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Dancer2::Plugin::LogContextual
CPAN shell
perl -MCPAN -e shell install Dancer2::Plugin::LogContextual
For more information on module installation, please visit the detailed CPAN module installation guide.