Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

- show more lines in online log - reverse order is default now

Michael Peter Christen1baf498d5979
diff --git a/defaults/yacy.logging b/defaults/yacy.logging
index fee59023e..e74ebd00b 100644
--- a/defaults/yacy.logging
+++ b/defaults/yacy.logging
@@ -47,7 +47,7 @@ java.util.logging.FileHandler.encoding=UTF-8
# Properties for the GuiHandler
net.yacy.kelondro.logging.GuiHandler.level = ALL
net.yacy.kelondro.logging.GuiHandler.formatter=net.yacy.kelondro.logging.SimpleLogFormatter
-net.yacy.kelondro.logging.GuiHandler.size = 400
+net.yacy.kelondro.logging.GuiHandler.size = 10000
# Properties for the ConsoleOutErrHandler
net.yacy.kelondro.logging.ConsoleOutErrHandler.level = ALL
diff --git a/htroot/ViewLog_p.html b/htroot/ViewLog_p.html
index 8b6763367..e18f5d61e 100644
--- a/htroot/ViewLog_p.html
+++ b/htroot/ViewLog_p.html
@@ -11,7 +11,7 @@
<form action="ViewLog_p.html" method="get" accept-charset="UTF-8">
<fieldset>
- <input type="text" name="lines" id="lines" size ="4" value="#[lines]#" maxlength="9" /><label for="lines"> Lines (max. #[maxlines]#)</label>
+ <input type="text" name="lines" id="lines" size ="5" value="#[lines]#" maxlength="9" /><label for="lines"> Lines (max. #[maxlines]#)</label>
<input type="checkbox" name="mode" id="mode" value="reversed" #(reverseChecked)#::checked="checked"#(/reverseChecked)# /><label for="mode">reversed order</label>
<input type="text" name="filter" id="filter" size ="30" value="#[filter]#" maxlength="60" />
<input type="submit" value="refresh" />
diff --git a/htroot/ViewLog_p.java b/htroot/ViewLog_p.java
index bad1f337c..741dd612f 100644
--- a/htroot/ViewLog_p.java
+++ b/htroot/ViewLog_p.java
@@ -48,9 +48,9 @@ public class ViewLog_p {
public static serverObjects respond(@SuppressWarnings("unused") final RequestHeader header, final serverObjects post, @SuppressWarnings("unused") final serverSwitch env) {
final serverObjects prop = new serverObjects();
String[] log = new String[0];
- boolean reversed = false;
+ boolean reversed = true;
boolean json = false;
- int maxlines = 400, lines = 200;
+ int maxlines = 10000, lines = 1000;
/* Usually a regex like this would make no sense, ".*" would be
* sufficient, but ".*.*" makes it a little bit more convenient
* for the user to input regexes like ".*FOO.*" in the HTML
@@ -58,7 +58,7 @@ public class ViewLog_p {
*/
String filter = ".*.*";
- if(post != null){
+ if (post != null){
reversed = (post.containsKey("mode") && "reversed".equals(post.get("mode")));
json = post.containsKey("json");
diff --git a/htroot/env/base.css b/htroot/env/base.css
index 862dbf4f2..f552714cb 100644
--- a/htroot/env/base.css
+++ b/htroot/env/base.css
@@ -799,7 +799,7 @@ body#Surftips div.searchresults {
overflow:hidden;
}
body#ViewLog div.log {
- height:600px;
+ height:900px;
overflow:scroll;
}
diff --git a/source/net/yacy/kelondro/logging/GuiHandler.java b/source/net/yacy/kelondro/logging/GuiHandler.java
index e4eb711ec..297e5c726 100644
--- a/source/net/yacy/kelondro/logging/GuiHandler.java
+++ b/source/net/yacy/kelondro/logging/GuiHandler.java
@@ -40,7 +40,7 @@ import java.util.logging.SimpleFormatter;
public class GuiHandler extends Handler {
- private final static int DEFAULT_SIZE = 400;
+ private final static int DEFAULT_SIZE = 10000;
private int size = DEFAULT_SIZE;
private LogRecord buffer[];
private int start, count;