Hi Andy,
Thanx for your reply. I've just read the documentation and I can see the
use of the plugin. However I would have the same question: how can I
access the log object and pass a reference to another object? (outside
of a route)
Kind regards,
Arjan.
On 23-08-15 12:39, Andrew Beverley wrote:
On Sun, 2015-08-23 at 12:17 -0400, Arjan Widlak wrote:
How can I get the log object? (outside of a specific route)
I have this Dancer2 application that is an interface to a backend.
If I could handover the Dancer2 log object to the backend, it could
write to the same log.
Sorry, I don't know the answer to your direct question, but you might want to
consider using Dancer2::Plugin::LogReport and Dancer2::Logger::LogReport
That way everything in your application will write to the same logger, which can
also be written to in any other application/backend, just by using Log::Report.
Log::Report also has the advantage of having many logging backends, which can be
configured/filtered as required for your application deployment.
There's still a bit of development work to do on the plugin; once that's
complete
I'll be posting some more details here.
Andy
_______________________________________________
dancer-users mailing list
[email protected]
http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
_______________________________________________
dancer-users mailing list
[email protected]
http://lists.preshweb.co.uk/mailman/listinfo/dancer-users