Log files with timestamp.
This commit is contained in:
parent
a8634adc3b
commit
1447c7d03c
4
backup
4
backup
|
@ -2,10 +2,12 @@
|
||||||
use warnings;
|
use warnings;
|
||||||
use strict;
|
use strict;
|
||||||
use Simba::CA;
|
use Simba::CA;
|
||||||
|
use POSIX qw(strftime);
|
||||||
|
|
||||||
$ENV{PATH} = "/usr/bin";
|
$ENV{PATH} = "/usr/bin";
|
||||||
|
|
||||||
open(my $log, '>>', '/var/log/simba/ca.log');
|
my $now = strftime('%Y-%m-%dT%H:%M:%S', localtime());
|
||||||
|
open(my $log, '>>', '/var/log/simba/ca.log.' . $now);
|
||||||
$log->autoflush(1);
|
$log->autoflush(1);
|
||||||
|
|
||||||
my $ca = Simba::CA->new({
|
my $ca = Simba::CA->new({
|
||||||
|
|
Loading…
Reference in New Issue