• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

ChangesH A D05-Dec-20032.8 KiB13073

MANIFESTH A D15-Oct-200061 76

Makefile.PLH A D28-Nov-2001308 96

READMEH A D05-Dec-20031.1 KiB3727

TraceMessages.pmH A D05-Dec-20034.5 KiB23079

test.plH A D05-Dec-20035.6 KiB182116

README

1Log::TraceMessages, version 1.4
2
3This module is a better way of putting 'hello there' trace messages in
4your code.  It lets you turn tracing on and off without commenting out
5trace statements, and provides other useful things like HTML-ified
6trace messages for CGI scripts and an easy way to trace out data
7structures using Data::Dumper.
8
9From the pod documentation:
10
11  use Log::TraceMessages qw(t d);
12  $Log::TraceMessages::On = 1;
13  t 'got to here';
14  t 'value of $a is ' . d($a);
15  {
16      local $Log::TraceMessages::On = 0;
17      t 'this message will not be printed';
18  }
19
20  $Log::TraceMessages::Logfile = 'log.out';
21  t 'this message will go to the file log.out';
22  $Log::TraceMessages::Logfile = undef;
23  t 'and this message is on stderr as usual';
24
25  # For a CGI program producing HTML
26  $Log::TraceMessages::CGI = 1;
27
28  # Or to turn on trace if there's a command-line argument '--trace'
29  Log::TraceMessages::check_argv();
30
31This is free software and you may distribute it under the same terms
32as perl itself.  There is no warranty.
33
34Since version 1.3 the test suite has been fixed to work on Windows.
35
36-- Ed Avis, ed@membled.com, 2003-12-05
37