From 4f600b5d39c6108f6823f2e56dbe0136346979c9 Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Sat, 22 Sep 2012 06:34:38 +0000 Subject: [PATCH] reverseLogs added git-svn-id: https://svn.fhem.de/fhem/trunk@1882 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/01_FHEMWEB.pm | 6 ++++-- fhem/docs/commandref.html | 8 ++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/fhem/FHEM/01_FHEMWEB.pm b/fhem/FHEM/01_FHEMWEB.pm index 499833a03..5c6966fd8 100755 --- a/fhem/FHEM/01_FHEMWEB.pm +++ b/fhem/FHEM/01_FHEMWEB.pm @@ -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 "
$path: $!
"; return; } + + my $reverseLogs = AttrVal($FW_wname, "reverseLogs", 0); binmode (FH); # necessary for Windows - my $cnt = join("", ); + my $cnt = join("", $reverseLogs ? reverse : ); close(FH); $cnt =~ s//>/g; diff --git a/fhem/docs/commandref.html b/fhem/docs/commandref.html index 4a88060f5..4b3ae0823 100644 --- a/fhem/docs/commandref.html +++ b/fhem/docs/commandref.html @@ -9641,6 +9641,14 @@ KlikAanKlikUit, NEXA, CHACON, HomeEasy UK.
You need to define an RFXtrx433
+ +
  • reverseLogs
    + 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. +
  • +
    + See also room and group attributes.