<div dir="ltr">Hi all,<div> I'm endeavouring to use Dancer2::Plugin::LogReport so that all our errors go to one log file.</div><div><br></div><div>As I understand the documentation (POD in Dancer2::Plugin::LogReport), I need to:</div><div>1. Add logging information to my yml</div><div>2. Add <font face="monospace, monospace">use Log::Report (); </font>and <font face="monospace, monospace">use Dancer2::Plugin::LogReport mode => DEBUG;</font> to my main route handler module</div><div>3. <font face="monospace, monospace">use Log::Report;</font> in my modules</div><div><br></div><div>Presumably, however, I need to tell the modules about my Log::Report configuration. Does this mean I need a:</div><div><font face="monospace, monospace">dispatcher 'FILE', 'log', mode => 'DEBUG', to => '/path/mylogfile.log';<br></font></div><div><br></div><div>in every method/subroutine? I assume not, but I can't see how the non-Dancer2 modules are getting the config information since they are ignorant of the .yml file.</div><div><br></div><div>thanks,</div><div>Nathan</div></div>