The current regex in Log::Log4perl::Resurrector to match the special ###l4p comments will remove blank lines before the comment as \s* will match newlines as well as whitespace.
This causes line numbers in logs to not match the line in the original source file.
Limited testing suggests replacing the pattern with:-
# Orig
#$text =~ s/^\s*###l4p//mg;
# Patch
$text =~ s/^[ \t]*###l4p//mg;
fixes this issue.
The current regex in Log::Log4perl::Resurrector to match the special
###l4pcomments will remove blank lines before the comment as\s*will match newlines as well as whitespace.This causes line numbers in logs to not match the line in the original source file.
Limited testing suggests replacing the pattern with:-
fixes this issue.