Bat-Interpreter

 view release on metacpan or  search on metacpan

lib/Bat/Interpreter/Role/LineLogger.pm  view on Meta::CPAN

package Bat::Interpreter::Role::LineLogger;

use utf8;

use Moo::Role;
use namespace::autoclean;

our $VERSION = '0.025';    # VERSION

requires 'log_line';

1;

__END__

=pod

=encoding utf-8

=head1 NAME

Bat::Interpreter::Role::LineLogger

=head1 VERSION

version 0.025

=head1 DESCRIPTION

Role for logging all the lines just before bein evaluated by the interpreter. This mean, all the
variables are substituted and manipulated. You can choose what to do with this lines, just printing them or whatever.

See Bat::Interpreter::Delegate::LineLogger::Silent for a simple example

=head1 NAME

Bat::Interpreter::Role::LineLogger - Role for logging all the lines as are going evaluated by the interpreter

=head1 METHODS

=head2 log_line

Just the line

=head1 AUTHOR

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

=head1 COPYRIGHT AND LICENSE

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

This is free software, licensed under:

  The MIT (X11) License

=cut



( run in 1.917 second using v1.01-cache-2.11-cpan-d8267643d1d )