Create log dir if necessary
This commit is contained in:
parent
a83aa49a89
commit
33d8e11a3e
|
@ -8,6 +8,7 @@ use lib 'blib/lib';
|
||||||
use Simba::DA;
|
use Simba::DA;
|
||||||
|
|
||||||
my $now = strftime('%Y-%m-%dT%H:%M:%S', localtime());
|
my $now = strftime('%Y-%m-%dT%H:%M:%S', localtime());
|
||||||
|
mkdir('/var/log/simba');
|
||||||
open(my $log, '>>', '/var/log/simba/da.log.' . $now);
|
open(my $log, '>>', '/var/log/simba/da.log.' . $now);
|
||||||
$log->autoflush(1);
|
$log->autoflush(1);
|
||||||
my $da = Simba::DA->new({fh_log => $log});
|
my $da = Simba::DA->new({fh_log => $log});
|
||||||
|
|
Loading…
Reference in New Issue