Log::R...rofiler(3pm)

πŸ¦‹ Log::R...rofiler(3pm) β€” the manual page, but make it make sense

okay bestie so this is the Log::R...rofiler(3pm) page from the User Contributed Perl Documentation β€” section 3pm, where all the Perl module lore lives ✨ pull up a chair, this one's short and sweet but it's so useful.


πŸ’– NAME πŸ’–

Log::Report::DBIC::Profiler β€” a query profiler for DBIx::Class, periodt πŸ”₯


🌸 INHERITANCE 🌸

Log::Report::DBIC::Profiler is a DBIx::Class::Storage::Statistics

so it's literally in that family tree, it inherited the whole Storage::Statistics thing, no cap 🫢


✨ SYNOPSIS ✨

here's the whole vibe, copy-paste coded exactly as the original:

 use Log::Report::DBIC::Profiler;
 $schema->storage->debugobj(Log::Report::DBIC::Profiler->new);
 $schema->storage->debug(1);

 # And maybe (if no exceptions expected from DBIC)
 $schema->exception_action(sub { panic @_ });

 # Log to syslog
 use Log::Report;
 dispatcher SYSLOG => 'myapp',
   identity => 'myapp',
   facility => 'local0',
   flags    => "pid ndelay nowait",
   mode     => 'DEBUG';

like… the debugobj line installs the profiler, debug(1) turns it on, and if you're not expecting DBIC to throw exceptions you can drop that exception_action line to panic @_ β€” and boom, syslog mode if that's your thing πŸ’…


πŸŽ€ DESCRIPTION πŸŽ€

This profile will log DBIx::Class queries via Log::Report to a selected back-end β€” and it gets there through a dispatcher, so go peek at Log::Report::Dispatcher if you wanna know the how. it's giving "plug it in, pick your fave destination, watch the queries flow by" 🌈


πŸ‘‘ SEE ALSO πŸ‘‘

This module is part of Log-Report version 1.46, built on June 16, 2026 πŸŽ‚

Website: http://perl.overmeer.net/CPAN/


πŸ’œ LICENSE πŸ’œ

For contributors see file ChangeLog.

This software is copyright (c) 2007-2026 by Mark Overmeer. 🫢

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

fr fr, it's free β€” same terms as Perl 5, so go wild (responsibly) πŸ“

and that's the whole page bestie πŸ’– built against perl v5.40.1, dated 2026-07-05, and yeah β€” the manual page really does get abbreviated to Log::R...rofiler(3pm) for the header and footer, which is honestly kind of iconic in a cursed way 😭 go log those queries, slay 🧚

πŸ“¦ where this page comes from