P is for Practical | |
PerlMonks |
Re^3: apply_all_roles method clobbering MooseX::Log::Log4perlby 1nickt (Canon) |
on Jan 18, 2018 at 16:07 UTC ( [id://1207473]=note: print w/replies, xml ) | Need Help?? |
I have not used Log4Perl nor do I use Moose any more. However, I use Role::Tiny and Moo, and when you apply a Role to an object manually, the object is reblessed into the resultant class, which will have a name something like 'Foo::Bar_WITH_Bar::Baz', so if your logger config is dependent on the class name, that could be the source of the problem. Things I would think are "pertinent to the question":
Hope this helps!
The way forward always starts with a minimal test.
In Section
Seekers of Perl Wisdom
|
|