Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/spi/server/RepositoryActivityLog.java16
1 files changed, 11 insertions, 5 deletions
diff --git a/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/spi/server/RepositoryActivityLog.java b/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/spi/server/RepositoryActivityLog.java
index 16fe141762..6e95f9f517 100644
--- a/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/spi/server/RepositoryActivityLog.java
+++ b/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/spi/server/RepositoryActivityLog.java
@@ -225,14 +225,14 @@ public abstract class RepositoryActivityLog extends LifecycleHook<IRepository> i
{
private final RollingLog rollingLog;
- public Rolling(String logFile, long logSize)
+ public Rolling(String logFile, long logSize, boolean append)
{
- rollingLog = new RollingLog(logFile, logSize);
+ rollingLog = new RollingLog(logFile, logSize, append);
}
- public void log(String line)
+ public void log(String message)
{
- rollingLog.log(line);
+ rollingLog.log(message);
}
@Override
@@ -286,7 +286,13 @@ public abstract class RepositoryActivityLog extends LifecycleHook<IRepository> i
size = "100000000";
}
- return new RepositoryActivityLog.Rolling(file, Long.parseLong(size));
+ String append = properties.get("append"); //$NON-NLS-1$
+ if (StringUtil.isEmpty(append))
+ {
+ append = Boolean.TRUE.toString();
+ }
+
+ return new RepositoryActivityLog.Rolling(file, Long.parseLong(size), Boolean.parseBoolean(append));
}
}
}

Back to the top