
Hello, I have committed an initial version of the logback logging event Corpus. The actual source is in the ch.qos.logback.classic.corpus package. Typical usage: ILoggingEvent[] eventArray = Corpus.makeStandardCorpus(); The returned array contains 50'000 elements. Calling the makeStandatdCorpus() method multiple times will yield the exact same results every time. If you wish to vary the number of results returned or use a different random generator seed, just look into the source code. It should be fairly easy to adapt. For the probabilistic model of the Corpus see the CorpusModel class. Most of the work is done in this class. Altough it makes several sweeping assumptions and may be improved on several counts, I think the model is fairly representative of the logs generated by a real application. You can see the output of the corpus when dumped into a file at: http://logback.qos.ch/corpus.txt Your comments are welcome, -- Ceki Gülcü Logback: The reliable, generic, fast and flexible logging framework for Java. http://logback.qos.ch

Ceki Gulcu wrote:
Your comments are welcome,
Nice effort, looks good. Unfortunately I can't use it right now since it's based on the current snapshot while all my classes compile against the last release. I did completely forget about this until I tried to integrate the corpus into my benchmark :p I guess you don't know right now when the next version will be ready for release? My benchmark has moved to https://apps.sourceforge.net/trac/lilith/browser/trunk/benchmark/src/main/ja... btw. Joern.

Joern Huxhorn wrote:
I guess you don't know right now when the next version will be ready for release?
Hopefully, some time in April.
Joern.
-- Ceki Gülcü Logback: The reliable, generic, fast and flexible logging framework for Java. http://logback.qos.ch
participants (2)
-
Ceki Gulcu
-
Joern Huxhorn