[Bio] / FigKernelPackages / Tracer.pm Repository:
ViewVC logotype

Diff of /FigKernelPackages/Tracer.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.37, Fri Feb 17 00:26:23 2006 UTC revision 1.38, Wed Feb 22 11:02:18 2006 UTC
# Line 257  Line 257 
257      TransactFeatures -trace=3 -sql register ../xacts IDs.tbl      TransactFeatures -trace=3 -sql register ../xacts IDs.tbl
258    
259  Standard tracing is output to the standard output and echoed to the file  Standard tracing is output to the standard output and echoed to the file
260  C<trace.log> in the FIG temporary directory.  C<trace>I<$$>C<.log> in the FIG temporary directory, where I<$$> is the
261    process ID. You can also specify the C<user> parameter to put a user ID
262    instead of a process ID in the trace file name. So, for example
263    
264  The default trace level is 2. To get all messages, specify a trace level of 4.  The default trace level is 2. To get all messages, specify a trace level of 4.
265  For a genome-by-genome update, use 3.  For a genome-by-genome update, use 3.
266    
267        TransactFeatures -trace=3 -sql -user=Bruce register ../xacts IDs.tbl
268    
269    would send the trace output to C<traceBruce.log> in the temporary directory.
270    
271  The I<options> parameter is a reference to a hash containing the command-line  The I<options> parameter is a reference to a hash containing the command-line
272  options, their default values, and an explanation of what they mean. Command-line  options, their default values, and an explanation of what they mean. Command-line
273  options may be in the form of switches or keywords. In the case of a switch, the  options may be in the form of switches or keywords. In the case of a switch, the
# Line 371  Line 377 
377      $options->{trace} = [2, "tracing level"];      $options->{trace} = [2, "tracing level"];
378      $options->{sql} = [0, "turn on SQL tracing"];      $options->{sql} = [0, "turn on SQL tracing"];
379      $options->{h} = [0, "display command-line options"];      $options->{h} = [0, "display command-line options"];
380        $options->{user} = [$$, "trace log file name suffix"];
381      # Create a parsing hash from the options hash. The parsing hash      # Create a parsing hash from the options hash. The parsing hash
382      # contains the default values rather than the default value      # contains the default values rather than the default value
383      # and the description. While we're at it, we'll memorize the      # and the description. While we're at it, we'll memorize the
# Line 397  Line 404 
404      # and joining the categories.      # and joining the categories.
405      my $cats = join(" ", $parseOptions{trace}, @cats);      my $cats = join(" ", $parseOptions{trace}, @cats);
406      # Now set up the tracing.      # Now set up the tracing.
407      TSetup($cats, "+>$FIG_Config::temp/trace.log");      my $suffix = $retOptions->{user};
408        TSetup($cats, "+>$FIG_Config::temp/trace$suffix.log");
409      # Check for the "h" option. If it is specified, dump the command-line      # Check for the "h" option. If it is specified, dump the command-line
410      # options and exit the program.      # options and exit the program.
411      if ($retOptions->{h}) {      if ($retOptions->{h}) {

Legend:
Removed from v.1.37  
changed lines
  Added in v.1.38

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3