diff --git a/fhem/FHEM/92_FileLog.pm b/fhem/FHEM/92_FileLog.pm index f95bbef30..efa4aac35 100644 --- a/fhem/FHEM/92_FileLog.pm +++ b/fhem/FHEM/92_FileLog.pm @@ -667,9 +667,12 @@ FileLog_logWrapper($) if(defined($type) && $type eq "text") { $defs{$d}{logfile} =~ m,^(.*)/([^/]*)$,; # Dir and File my $path = "$1/$file"; - $path =~ s/%L/$attr{global}{logdir}/g - if($path =~ m/%/ && $attr{global}{logdir}); - $path = AttrVal($d,"archivedir","") . "/$file" if(!-f $path); + my @t = localtime(gettimeofday()); + $path = ResolveDateWildcards($path, @t); + if(!-f $path) { + $path = AttrVal($d,"archivedir","") . "/$file"; + $path = ResolveDateWildcards($path, @t); + } FW_addContent(); FW_pO "