Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2018-05-21 03:04:54 -0400
committerEike Stepper2018-05-21 03:04:54 -0400
commit68e3bdebbe0028b6535b3f3c79d67fa17e53deaf (patch)
treeb5f075c3d573bd4ac5a90acd698b35e92af8254c
parent669e8e9176c90c7e68751a0018b7d9e6435d50a9 (diff)
downloadcdo-68e3bdebbe0028b6535b3f3c79d67fa17e53deaf.tar.gz
cdo-68e3bdebbe0028b6535b3f3c79d67fa17e53deaf.tar.xz
cdo-68e3bdebbe0028b6535b3f3c79d67fa17e53deaf.zip
[534898] Provide a repository activity log
https://bugs.eclipse.org/bugs/show_bug.cgi?id=534898
-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