2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 18:59:33 +00:00

93_Log2Syslog: contrib 5.10.0

git-svn-id: https://svn.fhem.de/fhem/trunk@21595 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
nasseeder1 2020-04-04 19:25:55 +00:00
parent 4b20346d46
commit 638afd270a

View File

@ -502,7 +502,13 @@ sub Log2Syslog_Read {
$msg = substr($tail,0,$mlen);
chomp $msg;
push @load, $msg;
if(length($tail) >= $mlen) {
$tail = substr($tail,$mlen);
} else {
$tail = "";
}
Log2Syslog_Log3slog ($hash, 5, "Log2Syslog $name -> LEN$i: $mlen, MSG$i: $msg, TAIL$i: $tail");
while($tail && $tail =~ /^(?<mlen>(\d+))\s(?<tail>.*)/s) {
@ -3081,10 +3087,11 @@ $CONT = (split(">",$CONT))[1] if($CONT =~ /^<.*>.*$/);
<ul>
<b>Examples of supported time specifications</b> <br>
2019-04-12T23:20:50.52Z <br>
2019-04-12T23:20:50Z <br>
2019-12-19T16:39:57-08:00 <br>
2020-01-01T12:00:27+00:20 <br>
2020-04-04T16:33:10+00:00 <br>
2020-04-04T17:15:00+02:00 <br>
</ul>
</li>
@ -3841,10 +3848,11 @@ $CONT = (split(">",$CONT))[1] if($CONT =~ /^<.*>.*$/);
<ul>
<b>Beispiele unterstützter Zeitspezifikationen</b> <br>
2019-04-12T23:20:50.52Z <br>
2019-04-12T23:20:50Z <br>
2019-12-19T16:39:57-08:00 <br>
2020-01-01T12:00:27+00:20 <br>
2020-04-04T16:33:10+00:00 <br>
2020-04-04T17:15:00+02:00 <br>
</ul>
</li>