NAME

Bat::Interpreter::Delegate::LineLogger::SilentSaveLines

VERSION

version 0.020

SYNOPSIS

use Bat::Interpreter;
use Bat::Interpreter::Delegate::LineLogger::SilentSaveLines;

my $silent_line_logger = Bat::Interpreter::Delegate::LineLogger::SilentSaveLines->new;

my $interpreter = Bat::Interpreter->new(linelogger => $silent_line_logger);
$interpreter->run('my.cmd');
use Data::Dumper;
print Dumper($silent_line_logger->lines);

DESCRIPTION

This line logger just discards every line so nothing get logged or printed on STDOUT. But saves the lines for further inspection

NAME

Bat::Interpreter::Delegate::LineLogger::SilentSaveLines - LineLogger that just don't log anything but saves the lines for further inspection

METHODS

lines

Returns an ARRAYREF with all the lines logged

log_line

AUTHOR

Pablo Rodríguez González <pablo.rodriguez.gonzalez@gmail.com>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2020 by Pablo Rodríguez González.

This is free software, licensed under:

The MIT (X11) License