[logback-dev] svn commit: r961 - in logback/trunk/logback-core/src/main/java/ch/qos/logback/core/rolling: . helper
noreply.ceki at qos.ch
noreply.ceki at qos.ch
Sun Nov 19 22:56:54 CET 2006
Author: ceki
Date: Sun Nov 19 22:56:54 2006
New Revision: 961
Modified:
logback/trunk/logback-core/src/main/java/ch/qos/logback/core/rolling/TimeBasedRollingPolicy.java
logback/trunk/logback-core/src/main/java/ch/qos/logback/core/rolling/helper/RenameUtil.java
Log:
Added toString methods
Modified: logback/trunk/logback-core/src/main/java/ch/qos/logback/core/rolling/TimeBasedRollingPolicy.java
==============================================================================
--- logback/trunk/logback-core/src/main/java/ch/qos/logback/core/rolling/TimeBasedRollingPolicy.java (original)
+++ logback/trunk/logback-core/src/main/java/ch/qos/logback/core/rolling/TimeBasedRollingPolicy.java Sun Nov 19 22:56:54 2006
@@ -190,4 +190,10 @@
return false;
}
}
+
+ @Override
+ public String toString() {
+ return "c.q.l.core.rolling.TimeBasedRollingPolicy";
+ }
+
}
Modified: logback/trunk/logback-core/src/main/java/ch/qos/logback/core/rolling/helper/RenameUtil.java
==============================================================================
--- logback/trunk/logback-core/src/main/java/ch/qos/logback/core/rolling/helper/RenameUtil.java (original)
+++ logback/trunk/logback-core/src/main/java/ch/qos/logback/core/rolling/helper/RenameUtil.java Sun Nov 19 22:56:54 2006
@@ -75,11 +75,16 @@
File fromFile = new File(from);
if (!fromFile.delete()) {
- addInfo("Could not delete "+ from);
+ addWarn("Could not delete "+ from);
}
} catch (IOException ioe) {
addError("Failed to rename file by copying", ioe);
throw new RolloverFailure("Failed to rename file by copying");
}
}
+
+ @Override
+ public String toString() {
+ return "c.q.l.co.rolling.helper.RenameUtil";
+ }
}
\ No newline at end of file
More information about the logback-dev
mailing list