[Dbix-class] DBIC_TRACE with timestamp / line numbers?

Peter Rabbitson rabbit+dbic at rabbit.us
Fri Mar 20 12:27:43 GMT 2015


On 03/20/2015 01:23 PM, Andy Smith wrote:
> Hi,
>
> Is there an obvious way I have missed to prepend a time stamp to the
> output that setting DBIC_TRACE puts out on STDERR? Or should I just
> direct that output to my own logging which adds that?
>
> Also same question but for __FILE__ and __LINE__ etc?
>
> I saw DBIC_TRACE_PROFILE and that all looks useful but couldn't see
> an obvious way to make it do those particular things.
>

https://metacpan.org/pod/DBIx::Class::UnicornLogger#new based on 
https://metacpan.org/pod/Log::Sprintf#formats

Cheers




More information about the DBIx-Class mailing list