1Log::Report::DBIC::ProfUisleerr(C3o)ntributed Perl DocumLeongt:a:tRieopnort::DBIC::Profiler(3)
2
3
4
6 Log::Report::DBIC::Profiler - query profiler for DBIx::Class
7
9 Log::Report::DBIC::Profiler
10 is a DBIx::Class::Storage::Statistics
11
13 use Log::Report::DBIC::Profiler;
14 $schema->storage->debugobj(Log::Report::DBIC::Profiler->new);
15 $schema->storage->debug(1);
16
17 # And maybe (if no exceptions expected from DBIC)
18 $schema->exception_action(sub { panic @_ });
19
20 # Log to syslog
21 use Log::Report;
22 dispatcher SYSLOG => 'myapp'
23 , identity => 'myapp'
24 , facility => 'local0'
25 , flags => "pid ndelay nowait"
26 , mode => 'DEBUG';
27
29 This profile will log DBIx::Class queries via Log::Report to a selected
30 back-end (via a dispatcher, see Log::Report::Dispatcher)
31
33 This module is part of Log-Report distribution version 1.29, built on
34 November 08, 2019. Website: http://perl.overmeer.net/CPAN/
35
37 Copyrights 2007-2019 by [Mark Overmeer <markov@cpan.org>]. For other
38 contributors see ChangeLog.
39
40 This program is free software; you can redistribute it and/or modify it
41 under the same terms as Perl itself. See http://dev.perl.org/licenses/
42
43
44
45perl v5.30.1 2019-11-08 Log::Report::DBIC::Profiler(3)