Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.2 / 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::Trace 1.070

    Download button

    No screenshots available
    Downloads: 250  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    BBC | More programs
    GPL / FREE
    October 24th, 2009, 13:22 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Log::Trace description

    Provides a unified approach to tracing

    Log::Trace is a Perl module to provide a unified approach to tracing. A script can use Log::Trace qw( < mode > ) to set the behaviour of the TRACE function.

    By default, the trace functions are exported to the calling package only. You can export the trace functions to other packages with the Deep option. See "OPTIONS" for more information.

    All exports are in uppercase (to minimise collisions with "real" functions).

    SYNOPSIS

     # The tracing targets
     use Log::Trace; # No output
     use Log::Trace 'print'; # print to STDOUT
     use Log::Trace log => '/var/log/foo.log'; # Output to log file
     use Log::Trace print => { Level => 3 };

     # Switch on/off logging with a constant
     use Log::Trace;
     import Log::Trace ('log' => LOGFILE) if TRACING;


     # Set up tracing for all packages that advertise TRACE
     use Foo;
     use Bar;
     use Log::Trace warn => { Deep => 1 };

     # Sets up tracing in all subpackages excluding Foo
     use Log::Trace warn => {Deep => 1, 'Exclude' => 'Foo'};


     # Exported functions
     TRACE("Record this...");
     TRACE({Level => 2}, "Only shown if tracing level is 2 or higher");
     TRACEF("A la printf: %d-%.2f", 1, 2.9999);
     TRACE_HERE(); # Record where we are (file, line, sub, args)
     DUMP(@loh, \%hoh); # Trace out via Data::Dumper
     DUMP("Title", @loh); # Trace out via Data::Dumper
     my $dump = DUMP(@args); # Dump is returned without being traced



    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    log tracing | Perl module | Perl | log | tracing

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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