in reply to Best way to share logging object among multiple objects?
package Logging; #the role use Moose::Role; requires 'examiner'; # ask my examiner, rather than contain this directly. sub dispatcher { return $self->examiner->dispatcher(); } package MyTest; # the test class use Moose; with 'Logging'; #...later... $self->dispatcher->warn("this example might work?");
|
|---|