ensembl StatLogger
Package variablesGeneral documentationMethods
Toolbar
WebCvsRaw content
Package variables
No package variables defined.
Included modules
Bio::EnsEMBL::Utils::Exception qw ( throw )
FileHandle
IO::File
Synopsis
No synopsis!
Description
No description!
Methods
add_StatMsg
No description
Code
new
No description
Code
Methods description
None available.
Methods code
add_StatMsgdescriptionprevnextTop
sub add_StatMsg {
  my $self = shift;
  my $msg  = shift;

  my $fh = $self->{'fh'};

  if(!$self->{'seen_msgs'}->{$msg->id}) {
    print $fh $msg->code(), "\n";
    $self->{'seen_msgs'}->{$msg->id()} = 1;
  }
}


1;
}
newdescriptionprevnextTop
sub new {
  my $class = shift;
  my $filename = shift;

  my $fh;

  if($filename) {
    $fh = IO::File->new();
    $fh->open(">$filename") or throw("Could not open file $filename.");
    $fh->autoflush();
  } else {
    $fh =\* STDOUT;
  }

  return bless {'fh' => $fh,
                'seen_msgs' => {}}, $class;
}
General documentation
No general documentation available.