<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Dear all,<br>
<br>
How can I get the log object? (outside of a specific route) <br>
<br>
I have this Dancer2 application that is an interface to a backend. <br>
If I could handover the Dancer2 log object to the backend, it could
write to the same log. <br>
<br>
What I would like to do is something like:<br>
<br>
<code>use Dancer2;</code><code><br>
</code><code><br>
</code><code>my $dancer2_log = XXX->get_dancer2_logger;</code><code><br>
</code><code><br>
</code><code>my $backend_environment = Backend::Env->new({</code><code><br>
</code><code> log => $dancer2_log,</code><code><br>
</code><code>});</code><code> </code><code><br>
</code><code><br>
</code><code>get '/' => sub {</code><code><br>
</code><code> my $env = $env;<br>
...<br>
<br>
</code>Is it possible to obtain the log object somehow, or do I have
to instantiate Dancer2::Core::Role::Logger myself, and hand it all
the config information myself? <br>
<br>
Kind regards,<br>
Arjan.<br>
<br>
</body>
</html>