The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

RSH::Logging::TextTable - Extension of Text::SimpleTable to handle chunking.

SYNOPSIS

  use RSH::Logging::TextTable;
  my $table = RSH::Logging::TextTable->new();
  ...
  my $str = $table->draw(); # use original logic
  $table->draw($fh); # write to the filehandle
  my $code = sub {
      $logger->debug(@_);
  }
  $table->draw($code); # send lines/chunks to $code->($line);

DESCRIPTION

When sending the timing table to Log4Perl, if the table is too large, Log4Perl will generate an OOM error. Chunking solves this.

EXPORT

None by default.

CONSTRUCTORS

new(%ARGS)

Creates a new RSH::Logging::TextTable object. %ARGS contains arguments to use in initializing the new instance.

Returns: A new RSH::Logging::TextTable object.

INSTANCE METHODS

Functionality

draw([$io_handle | $code_ref ])

Override Text::SimpleTable::draw, allowing optional chunking.

I'm not tremendously wild about copy and pasting the original. I should probably send this method as a patch to Text::SimpleTable.

SEE ALSO

Other::Module

http://website/

AUTHOR

Matt Luker, <mluker@rshtech.com>

COPYRIGHT AND LICENSE

Copyright 2012 by Matt Luker

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.