[logback-dev] svn commit: r2209 - logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/corpus
noreply.ceki at qos.ch
noreply.ceki at qos.ch
Wed Mar 11 21:56:17 CET 2009
Author: ceki
Date: Wed Mar 11 21:56:16 2009
New Revision: 2209
Modified:
logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/corpus/CorpusModel.java
Log:
changed the level distribution
Modified: logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/corpus/CorpusModel.java
==============================================================================
--- logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/corpus/CorpusModel.java (original)
+++ logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/corpus/CorpusModel.java Wed Mar 11 21:56:16 2009
@@ -52,9 +52,9 @@
static final int LOG_STATEMENT_POOL_SIZE = LOGGER_POOL_SIZE * 8;
// level distribution is determined by the following table
- // It corresponds to TRACE 20%, DEBUG 30%, INFO 30%, WARN 10%,
- // ERROR 10%. See also getRandomLevel() method.
- static final double[] LEVEL_DISTRIBUTION = new double[] { .2, .5, .8, .9 };
+ // It corresponds to TRACE 3%, DEBUG 30%, INFO 30%, WARN 5%,
+ // ERROR 5%. See also getRandomLevel() method.
+ static final double[] LEVEL_DISTRIBUTION = new double[] { .3, .3, .9, .95 };
// It is assumed that the number of words in the message (contained in a log
// statement) is a random variable normally distributed with mean
@@ -187,7 +187,7 @@
public CallerData[] getRandomCallerData(int depth, String loggerName) {
CallerData[] cda = new CallerData[depth];
CallerData cd = new CallerData(extractLastPart(loggerName), loggerName,
- getRandomJavaIdentifier(), 10);
+ getRandomJavaIdentifier(), 0);
cda[0] = cd;
for (int i = 1; i < depth; i++) {
String ln = getRandomLoggerNameFromPool(loggerNamePool);
More information about the logback-dev
mailing list