Subject: | Hyper-Debug should have a get_text method |
The module Hyper::Debug should have a method to get plain text. This
would be useful when you want to log debug messages instead of just
display it within a site or you are using other modules to create debug
output.
the method could look like this:
sub get_text {
my $self = shift;
my $ident = ident $self;
return join q{}, map {
"$_->{caller}\n"
. join q{}, map { " $_\n" } @{ $_->{messages} };
} @{ $debug_messages_of{$ident} };
}