79766676

Date: 2025-09-16 21:02:07
Score: 3.5
Natty:
Report link

How about this?

use Mojo::Log;

my $file_log = Mojo::Log->new(path => "/tmp/log");
my $log = Mojo::Log->new;
$log->on(message => sub {
  my ($log, $level, @lines) = @_;
  $file_log->$level(@lines);
});
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): How
  • Low reputation (1):
Posted by: Mitch