| 1 | package HTTP::Recorder::Httperf::Logger; | ||||||||||
| 2 | 2 | ▶ | use base 'HTTP::Recorder::Logger'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | 2 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 2 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | |||||||||||
| 6 | |||||||||||
| 7 | 2 | $HTTP::Recorder::Httperf::Logger::VERSION = '0.01'; | |||||||||
| 8 | #just override the 'Log' method. | ||||||||||
| 9 | sub Log | ||||||||||
| 10 | 4 | ▶ | { | ||||||||
|
Subroutine
Log: called CC=3 SCAR=11.3
Pod
undocumented
| |||||||||||
| 11 | 4 | my ($self, $line) = @_; | |||||||||
| 12 | 4 | my $scriptfile = $self->{'file'}; | |||||||||
| 13 | 4 | ▶ | open (SCRIPT, ">>$scriptfile") or die "Couldn't open $scriptfile: $!"; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 14 | 4 | print SCRIPT $line; | |||||||||
| 15 | 4 | ▶ | close SCRIPT or die "Couldn't close $scriptfile"; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 16 | } | ||||||||||
| 17 | |||||||||||
| 18 | |||||||||||
| 19 | 2 | 1; | |||||||||
| 20 | |||||||||||