You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using subroutines as second arg for a log message doesn't work as expected when using any of the LOG functions in easy mode. It shows the subroutine address instead of the returned value. Others such as LOGDIE work fine. See example here.
use Log::Log4perl::Tiny ":easy";
# This doesn't work:
LOGCONFESS "Names: ", sub{ join(",", qw/John Jane Mario/) };
#This works:
LOGDIE "Names: ", sub{ join(",", qw/John Jane Mario/) };
Both fail when writing to STDERR, but LOGDIE works fine when adding the messages to a file.
The text was updated successfully, but these errors were encountered:
I've sent trial release 1.4.1 to CPAN. It does not test the easy mode stuff because the problem was at the underlying level, please let me know if there are still residual issues (feel free to contribute a test case! 😄)
Using subroutines as second arg for a log message doesn't work as expected when using any of the LOG functions in easy mode. It shows the subroutine address instead of the returned value. Others such as LOGDIE work fine. See example here.
Both fail when writing to STDERR, but LOGDIE works fine when adding the messages to a file.
The text was updated successfully, but these errors were encountered: