Permalink
Browse files

Changing my new logging example to be more focused on just filling lo…

…gs up
  • Loading branch information...
1 parent ddf20ab commit 07feadd35cabb2a608a0704e204baaf513996804 @kylape committed Dec 3, 2012
@@ -0,0 +1,5 @@
+###Servlet used to fill your logs
+
+This servlet simply logs to two different `java.util.logging.Logger`s: `com.redhat.gss.logging.LoggingServlet` and `some.fun.class.Name`. The statements are really long so testing for log rotation won't take as many invocations of the servlet. Alos, the `INFO`-level message to `LoggingServlet` is logged 1000 times per invocation.
+
+To invoke the servlet, run `curl curl http://localhost:8080/fillMyLogsPlease/logging`. To invoke indefinitely, run `for (( ; ; )); do curl http://localhost:8080/fillMyLogsPlease/logging; done`.
@@ -25,7 +25,10 @@
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException
{
- log.info("This is a really big log statement. This is a really big log statement. This is a really big log statement. This is a really big log statement. This is a really big log statement. This is a really big log statement. This is a really big log statement. This is a really big log statement. This is a really big log statement. This is a really big log statement. This is a really big log statement. This is a really big log statement. This is a really big log statement. This is a really big log statement. This is a really big log statement. This is a really big log statement. This is a really big log statement.");
+ for(int i=0; i<1000; i++)
+ {
+ log.info("This is a really big log statement. This is a really big log statement. This is a really big log statement. This is a really big log statement. This is a really big log statement. This is a really big log statement. This is a really big log statement. This is a really big log statement. This is a really big log statement. This is a really big log statement. This is a really big log statement. This is a really big log statement. This is a really big log statement. This is a really big log statement. This is a really big log statement. This is a really big log statement. This is a really big log statement.");
+ }
log2.fine("This is a really fine log statement. This is a really fine log statement. This is a really fine log statement. This is a really fine log statement. This is a really fine log statement. This is a really fine log statement. This is a really fine log statement. This is a really fine log statement. This is a really fine log statement. This is a really fine log statement. This is a really fine log statement. This is a really fine log statement. This is a really fine log statement. This is a really fine log statement. This is a really fine log statement. This is a really fine log statement. This is a really fine log statement.");
}
File renamed without changes.
@@ -1,5 +0,0 @@
-###Basic logging servlet
-
-This servlet simply logs to two different `java.util.logging.Logger`s: `com.redhat.gss.logging.LoggingServlet` and `some.fun.class.Name`. The statements are really long so testing for log rotation won't take as many invocations of the servlet.
-
-To invoke the servlet, run `curl curl http://localhost:8080/loggingServlet/logging`. To invoke indefinitely, run `for (( ; ; )); do curl http://localhost:8080/loggingServlet/logging; done`.

0 comments on commit 07feadd

Please sign in to comment.