Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Programming > Perl Modules

    Log::Report 0.16

    Download button

    No screenshots available
    Downloads: 393  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    Fair (2.7/5)
    11 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Mark Overmeer | More programs
    Perl Artistic License / FREE
    April 8th, 2008, 11:56 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Log::Report description

    Log::Report is a Perl module used to report a problem, pluggable handlers and language support.

    Log::Report is a Perl module used to report a problem, pluggable handlers and language support.

    INHERITANCE

    Log::Report
    is a Exporter

    SYNOPSIS

    # Read section "The Reason for the report" first!!!

    # In your main script
    use Log::Report 'my-domain';

    dispatcher PERL => 'default'
    , reasons => 'NOTICE-'; # this disp. is automatically added

    dispatcher SYSLOG => 'syslog'
    , charset => 'iso-8859-1' # explicit conversions
    , locale => 'en_US'; # overrule user's locale

    # in all (other) files
    use Log::Report 'my-domain';
    report ERROR => __x('gettext string', param => $param, ...)
    if $condition;

    # overrule standard behavior for single message with HASH
    use Errno qw/ENOMEM/;
    report {to => 'syslog', errno => ENOMEM}
    , FAULT => __x"cannot allocate {size} bytes", size => $size;

    use Log::Report 'my-domain', syntax => 'SHORT';
    error __x('gettext string', param => $param, ...)
    if $condition;

    # avoid messages without report level
    print __"Hello World", "n";

    fault __x "cannot allocate {size} bytes", size => $size;
    fault "cannot allocate $size bytes"; # no translation
    fault __x "cannot allocate $size bytes"; # wrong, not static

    print __xn("found one file", "found {_count} files", @files), "n";

    try { error }; # catch errors with hidden eval/die
    if($@) {...} # $@ isa Log::Report::Dispatcher::Try

    use POSIX ':locale_h';
    setlocale(LC_ALL, 'nl_NL');
    info __"Hello World!"; # in Dutch, if translation table found

    my $msg = __x"something", _class => 'local,mine';
    if($msg->inClass('local')) ...

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    log report | pluggable handlers | Perl module | log | report | pluggable

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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