RSH::Logging::TextTable - Extension of Text::SimpleTable to handle chunking.
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);
When sending the timing table to Log4Perl, if the table is too large, Log4Perl will generate an OOM error. Chunking solves this.
None by default.
Creates a new RSH::Logging::TextTable object. %ARGS contains arguments to use in initializing the new instance.
%ARGS
Returns: A new RSH::Logging::TextTable object.
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.
Other::Module
http://website/
Matt Luker, <mluker@rshtech.com>
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.
To install RSH::Logging, copy and paste the appropriate command in to your terminal.
cpanm
cpanm RSH::Logging
CPAN shell
perl -MCPAN -e shell install RSH::Logging
For more information on module installation, please visit the detailed CPAN module installation guide.