sukria/Dancer — pull request #814 by ambs (2012-07-31 17:41:19+00:00)
Title: Add log_ compat methods

One (final?) step towards easy universal plugins (working with both versions of dancer) would be an universal way of logging.

One problem with Dancer 2 logging is the use of ``log`` keyword, as I already pointed sometimes.

Matt Trout defends the use of Log::Contextual and it seems that some other are tempted as well (@xsawyerx at least, if I am not mistaken).

The few I could learn for some minutes looking to Log::Contextual, it works with ``log_$level`` and a subroutine reference. With that in mind, I wrote five methods in ``Dancer::Plugin`` to solve that.

If you all think this might work, I'll merge this, and work on integrating Log::Contextual on Dancer 2.

Feedback is welcome (@sukria, @dams, @bigpresh, @franckcuny, Matt...)