Log::Any::For::DBI

Add logging to DBI method calls, etc
Download

Log::Any::For::DBI Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Steven Haryanto
  • Publisher web site:
  • http://search.cpan.org/~sharyanto/

Log::Any::For::DBI Tags


Log::Any::For::DBI Description

Log::Any::For::DBI is a Perl module that adds logging to DBI method calls, etc.SYNOPSIS use DBI; use Log::Any::For::DBI; # now all connect()'s, do()'s, prepare()'s are logged with Log::Any my $dbh = DBI->connect("dbi:...", $user, $pass); $dbh->do("INSERT INTO table VALUES (...)");Sample script and output: % TRACE=1 perl -MLog::Any::App -MDBI -MLog::Any::For::DBI \ -e'$dbh=DBI- >connect("dbi:SQLite:dbname=/tmp/tmp.db", "", ""); $dbh- >do("CREATE TABLE IF NOT EXISTS t (i INTEGER)");' --- > DBI::connect() < --- DBI::connect() = --- > DBI::db::do() --- > DBI::db::prepare() < --- DBI::db::prepare() = --- > DBI::st::execute([]) < --- DBI::st::execute() = < --- DBI::db::do()Product's homepage


Log::Any::For::DBI Related Software