mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 06:39:11 +00:00
reverseLogs added
git-svn-id: https://svn.fhem.de/fhem/trunk@1882 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
cbefc77883
commit
4f600b5d39
@ -123,7 +123,7 @@ FHEMWEB_Initialize($)
|
||||
"plotmode:gnuplot,gnuplot-scroll,SVG plotsize refresh " .
|
||||
"touchpad smallscreen plotfork basicAuth basicAuthMsg ".
|
||||
"stylesheetPrefix iconpath hiddenroom HTTPS longpoll:1,0 ".
|
||||
"redirectCmds:0,1 allowfrom ";
|
||||
"redirectCmds:0,1 reverseLogs:0,1 allowfrom ";
|
||||
|
||||
###############
|
||||
# Initialize internal structures
|
||||
@ -1193,8 +1193,10 @@ FW_logWrapper($)
|
||||
FW_pO "<div id=\"content\">$path: $!</div>";
|
||||
return;
|
||||
}
|
||||
|
||||
my $reverseLogs = AttrVal($FW_wname, "reverseLogs", 0);
|
||||
binmode (FH); # necessary for Windows
|
||||
my $cnt = join("", <FH>);
|
||||
my $cnt = join("", $reverseLogs ? reverse <FH> : <FH>);
|
||||
close(FH);
|
||||
$cnt =~ s/</</g;
|
||||
$cnt =~ s/>/>/g;
|
||||
|
@ -9641,6 +9641,14 @@ KlikAanKlikUit, NEXA, CHACON, HomeEasy UK. <br> You need to define an RFXtrx433
|
||||
</li>
|
||||
<br>
|
||||
|
||||
<a name="reverseLogs"></a>
|
||||
<li>reverseLogs<br>
|
||||
Display the lines from the logfile in a reversed order, newest on the
|
||||
top, so that you don.t have to scroll down. Default is disabled / 0, as
|
||||
it consumes less (half?) memory.
|
||||
</li>
|
||||
<br>
|
||||
|
||||
</ul>
|
||||
|
||||
See also <a href="#room">room</a> and <a href="#group">group</a> attributes.
|
||||
|
Loading…
Reference in New Issue
Block a user