Usually when using a dancer you call, for example
debug 'foo';
and he will record the text. But I want to be able to register material in an object that does not import dancer syntax. I am wondering if there is a way to make the dancer simply pass me this log object (I assume it is one) so that I can call things like debug using the syntax of the object, for example.
$logger->debug( 'foo' );
object logging perl dancer
xenoterracide
source share