Log files with timestamp.

This commit is contained in:
hjp 2007-11-15 20:15:56 +00:00
parent a8634adc3b
commit 1447c7d03c
1 changed files with 3 additions and 1 deletions

4
backup
View File

@ -2,10 +2,12 @@
use warnings;
use strict;
use Simba::CA;
use POSIX qw(strftime);
$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);
my $ca = Simba::CA->new({