Create log dir if necessary

This commit is contained in:
hjp 2018-03-05 19:32:59 +00:00
parent a83aa49a89
commit 33d8e11a3e
1 changed files with 1 additions and 0 deletions

View File

@ -8,6 +8,7 @@ use lib 'blib/lib';
use Simba::DA;
my $now = strftime('%Y-%m-%dT%H:%M:%S', localtime());
mkdir('/var/log/simba');
open(my $log, '>>', '/var/log/simba/da.log.' . $now);
$log->autoflush(1);
my $da = Simba::DA->new({fh_log => $log});