Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Perl Modules

    Log::Handler::Plugin::DBI 1.01

    Download button

    No screenshots available
    Downloads: 147  Tell us about an update
    User Rating:
    Rated by:
    Excellent (5.0/5)
    1 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Ron Savage | More programs
    Perl Artistic License / FREE
    September 24th, 2012, 09:23 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Log::Handler::Plugin::DBI description

    A plugin for Log::Handler using Log::Hander::Output::DBI

    When you 'use' the Log::Handler::Plugin::DBI Perl module (as in the Synopsis), it automatically imports into your class several methods. See "Methods" for details.

    Synopsis

    Firstly, use your config file to connect to the db and create the 'log' table.

    Then:

     package My::App;

     use strict;
     use warnings;

     use Config::Plugin::Tiny; # For config_tiny().

     use Log::Handler::Plugin::DBI; # For configure_logger() and log().

     # ------------------------------------------------

     sub marine
     {
     my($self) = @_;
     my($config) = $self -> config_tiny('/some/dir/config.tiny.ini');

     $self -> configure_logger($$config{logger});

     $self -> log(debug => 'Hi from sub marine()');

     } # End of marine.

     # --------------------------------------------------

     1;


    t/config.logger.ini is used in the test file t/test.t, and also ships with the CGI::Snapp::Demo::Four distro.


    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    Log::Handler plugin | Perl module | Perl | Log::Handler | Log::Hander::Output::DBI

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM