[logback-dev] svn commit: r601 - logback/trunk/logback-core/src/main/java/ch/qos/logback/core/rolling

noreply.seb at qos.ch noreply.seb at qos.ch
Mon Sep 25 16:11:50 CEST 2006


Author: seb
Date: Mon Sep 25 16:11:49 2006
New Revision: 601

Modified:
   logback/trunk/logback-core/src/main/java/ch/qos/logback/core/rolling/FixedWindowRollingPolicy.java
   logback/trunk/logback-core/src/main/java/ch/qos/logback/core/rolling/RollingFileAppender.java

Log:
- updated RollingFileAppender.java and FixedWindowRollingPolicy.java to show a link to the faq when adding errors to the context

Modified: logback/trunk/logback-core/src/main/java/ch/qos/logback/core/rolling/FixedWindowRollingPolicy.java
==============================================================================
--- logback/trunk/logback-core/src/main/java/ch/qos/logback/core/rolling/FixedWindowRollingPolicy.java	(original)
+++ logback/trunk/logback-core/src/main/java/ch/qos/logback/core/rolling/FixedWindowRollingPolicy.java	Mon Sep 25 16:11:49 2006
@@ -53,7 +53,7 @@
  */
 public class FixedWindowRollingPolicy extends RollingPolicyBase {
   static final String FNP_NOT_SET = "The FileNamePattern option must be set before using FixedWindowRollingPolicy. ";
-  static final String SEE_FNP_NOT_SET = "See also http://www.logback.com/doc/codes.html#tbr_fnp_not_set";
+  static final String SEE_FNP_NOT_SET = "See also http://logback.qos.ch/codes.html#tbr_fnp_not_set";
   int maxIndex;
   int minIndex;
   RenameUtil util = new RenameUtil();

Modified: logback/trunk/logback-core/src/main/java/ch/qos/logback/core/rolling/RollingFileAppender.java
==============================================================================
--- logback/trunk/logback-core/src/main/java/ch/qos/logback/core/rolling/RollingFileAppender.java	(original)
+++ logback/trunk/logback-core/src/main/java/ch/qos/logback/core/rolling/RollingFileAppender.java	Mon Sep 25 16:11:49 2006
@@ -73,7 +73,8 @@
 
   public void start() {
     if (triggeringPolicy == null) {
-      addWarn("Please set a TriggeringPolicy for the RollingFileAppender named "+ getName());
+      addWarn("No TriggeringPolicy was set for the RollingFileAppender named "+ getName());
+      addWarn("For more information, please visit http://logback.qos.ch/codes.html#rfa_no_tp");
       return;
     }
 
@@ -87,7 +88,8 @@
       activeFile = new File(afn);
       super.start();
     } else {
-      addWarn("Please set a rolling policy");
+      addWarn("No RollingPolicy was set for the RollingFileAppender named "+ getName());
+      addWarn("For more information, please visit http://logback.qos.ch/codes.html#rfa_no_rp");
     }
   }
 



More information about the logback-dev mailing list