FHEM Forum

FHEM => English Corner => Thema gestartet von: fruit am 28 April 2015, 10:22:17

Titel: [Solved]Filelog regex issue
Beitrag von: fruit am 28 April 2015, 10:22:17
Sorry, I am not sure where to post this so please move to wherever appropriate

I have had a Filelog entry running successfully for some time but it stopped logging yesterday morning (27.04.2015) after updates
The define was..
define FileLog_Energy_M FileLog ./log/Energy-%Y-%m.log Daily_Diff_Electric:.*|Daily_Diff_Gas:.*|Daily_Electric:.*|Daily_Gas:.*|Electric:.*|Gas:.*

I haven't been able to find anything relevant in the forum. Changing to
define FileLog_Energy_M FileLog ./log/Energy-%Y-%m.log .*Gas:.*|.*Electric:.*

has restated logging.
Has anything changed? Is there a max number of regex terms?
Titel: Antw:Filelog regex issue
Beitrag von: scooty am 28 April 2015, 12:30:47
Please see here (http://forum.fhem.de/index.php/topic,36702.0.html) and here (http://forum.fhem.de/index.php/topic,36701.0.html).
Titel: Antw:Filelog regex issue
Beitrag von: fruit am 28 April 2015, 22:12:40
Thanks for the links, I've been out all day so sorry for the late reply.
I'll look at them more closely tomorrow - too late to try and interpret google translate tonight ;)
At least I'm getting logs for now.

Edit:Sorted, and for the benefit of others..
the multiple regex string has to be enclosed in brackets - as I used to do before the wizard
Titel: Antw:[Solved]Filelog regex issue
Beitrag von: rudolfkoenig am 30 April 2015, 13:25:55
I fixed the problem by reverting the patch.
Titel: Antw:[Solved]Filelog regex issue
Beitrag von: fruit am 01 Mai 2015, 08:28:59
Thanks - I think I'll leave the brackets, if nothing else it makes reading my backup .cfg easier