[dancer-users] Converting from Dancer2::Logger::Syslog to Dancer2::Logger::LogReport

Andrew Beverley andy at andybev.com
Mon Feb 6 08:01:06 GMT 2017


On Sun, 5 Feb 2017 Andrew Beverley <andy at andybev.com> wrote:
> On Sat, 4 Feb 2017 Clive Eisen <clive at hildebrand.co.uk> wrote:
> >
> > using the former I get entries in syslog like
> > 
> > URL: /getHids in /usr/local/openresty/api/bin/../lib/api.pm l. 47
> > 
> > With the latter I get
> > 
> > URL: /getHids
> > 
> > I assume I need to tweak the log_format
> 
> This is a bit of an oversight on my part, and the documentation does
> not explain it.
> 
> An older version of Logger::LogReport *did* include a call to
> Dancer2's format_message function, which would have meant things
> working for you as expected.

Thinking about this more, maybe there should be a configuration option
to enable/disable for Dancer formatter, so that you can use
Dancer2::Logger::LogReport as a drop-in replacement to
Dancer2::Logger::Syslog. Would that help?

Andy


More information about the dancer-users mailing list