NAME

Dancer2::Plugin::LogContextualWarn - force all warns in a Dancer2 plack app to log_warn

VERSION

version 1.152121

SYNOPSIS

use Dancer2;

use Dancer2::Plugin::LogContextual; # not needed if you bring your own L::C
set lc_logger => MyLCLogger->new;

use Dancer2::Plugin::LogContextualWarn;

any '/' => sub {
    warn "aaaah"; # logs via L::C's log_warn (and so will every warn in
                  # the local() scope)
};

AUTHOR

Christian Walde <walde.christian@gmail.com>

COPYRIGHT AND LICENSE

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.