[Koha-bugs] [Bug 16329] New: Koha::Logger->sql(). Unified interface to log SQL statements OR use DBIx::Log4perl

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Sun Apr 24 15:20:02 CEST 2016


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16329

            Bug ID: 16329
           Summary: Koha::Logger->sql(). Unified interface to log SQL
                    statements OR use DBIx::Log4perl
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5 - low
         Component: Architecture, internals, and plumbing
          Assignee: gmcharlt at gmail.com
          Reporter: olli-antti.kivilahti at jns.fi
        QA Contact: testopia at bugs.koha-community.org

Instead of whenever needing to log SQL statements, making a custom logging
output/function, introduce a centralized subroutine to handle all sql-statement
logging.

How the SQL-statements should be logged remains to be seen, but currently
simply presenting very simple formatting we can discuss about.

SQL libraries (DBI, DBIx) also allow logging SQL-statements but lack the
fine-grained control Log4perl offers.


Or maybe Log4perl can be integrated better to DBI / DBIx with this:
https://metacpan.org/pod/DBIx::Log4perl

Because I am not a huge fan of DBIx and also integrating that to Koha::Object
is a lot of work, will not pursue that track further.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list