I have this in my Mojolicious app:
use utf8;
use Mojolicious::Lite;
# ......
use Mojo::Log;
my $app = app;
my $log = Mojo::Log->new(path => '/var/log/my_log.log', level => 'warn');
get '/' => sub {
.........
$log->info("test123");
}
app->start;
The log file didn't even get created. After some time I created it myself, made it "chmod 777" and now it's still not being written into.
Why?