<div style="font-family: Helvetica; font-size: 13px; ">Hi Tony,<div>looks like you layed a good ground for continue working with. So far I do not yet have any concrete thoughts in mind how the decoder will finally look like, so I will try to continue what you already achieved. Thanks for the good test coverage, that will help me a lot to get started. </div><div><br></div><div>Johannes</div><div><br></div><div><br></div></div>
<div></div>
<p style="color: #A0A0A8;">On Tuesday, April 23, 2013 at 2:31 AM, Tony Trinh wrote:</p>
<blockquote type="cite" style="border-left-style:solid;border-width:1px;margin-left:0px;padding-left:10px;">
<span><div><div><div dir="ltr">Hi Johannes,<div><br></div><div style="">Thanks for jumping in. :-) I'm open to design-changes you might have in mind (including refactoring some/all components).</div><div><br></div><div style="">Tony</div></div>
<div><br><br><div>On Mon, Apr 22, 2013 at 4:33 PM, ceki <span dir="ltr"><<a href="mailto:ceki@qos.ch" target="_blank">ceki@qos.ch</a>></span> wrote:<br><blockquote type="cite"><div>
Tony Trinh has done quite a bit of work on logback-decoder. The<br>
exchange in [1] is probably worth reading.<br>
<br>
Given a pattern, the core idea is to create regular expressions from<br>
that pattern. Once we have the regular expression containing grouping<br>
instructions, we can capture various ILoggingeEvent fields.<br>
<br>
Tony has written several classes under the<br>
ch.qos.logback.decoder.regex package for this purpose.<br>
<br>
Assuming each log line corresponds to a ILoggingEvent, once we have<br>
the correct regular expression, we can go through the file and convert<br>
each line into an ILoggingEvent.<br>
<br>
I think it is easier to start by solving this sub-problem before<br>
trying to convert events spanning multiple lines.<br>
<br>
We can also ignore AccessEvent conversions (events generated by<br>
logback-access) in the initial stages of the project.<br>
<br>
[1] <a href="http://markmail.org/message/wqqaxztmjqfuklri" target="_blank">http://markmail.org/message/<u></u>wqqaxztmjqfuklri</a><div><div><br>
<br>
On 22.04.2013 23:04, Johannes Bühler wrote:<br><blockquote type="cite"><div>
Hi Ceki,<br>
Sounds good to me to get started.<br>
<br>
Thanks,<br>
Johannes<br>
<br>
On Monday, April 22, 2013 at 10:49 PM, ceki wrote:<br>
<br><blockquote type="cite"><div>
<br>
Hi Johannes,<br>
<br>
Cool.<br>
<br>
The goal of logback-decoder is to convert one or more lines found in a<br>
log file (containing text) into a series of objects of type<br>
ILoggingEvent. Thus, FileAppender converts instances of ILoggingEvent<br>
into one or more lines in a log file, a decoder performs the inverse<br>
operation.<br>
<br>
It should be assumed that the first line of the log file contains the<br>
pattern that was used to format the output. See<br>
<a href="http://logback.qos.ch/manual/encoders.html#outputPatternAsHeader" target="_blank">http://logback.qos.ch/manual/<u></u>encoders.html#<u></u>outputPatternAsHeader</a> for<br>
further details.<br>
<br>
Is the above sufficient to get you started?<br>
<br>
On 22.04.2013 22:27, Johannes Bühler wrote:<br><blockquote type="cite"><div>
Hi all,<br>
Ceki asked for a volunteer for writing a logback log file parser. I am<br>
interested in doing it.<br>
Are there already some initial requierements available?<br>
Looking forward to it!<br>
<br>
Cheers,<br>
Johannes<br>
</div></blockquote><br>
</div></blockquote></div></blockquote><br>
<br>
-- <br>
Ceki<br>
65% of statistics are made up on the spot<br>
______________________________<u></u>_________________<br>
logback-dev mailing list<br>
<a href="mailto:logback-dev@qos.ch" target="_blank">logback-dev@qos.ch</a><br>
<a href="http://mailman.qos.ch/mailman/listinfo/logback-dev" target="_blank">http://mailman.qos.ch/mailman/<u></u>listinfo/logback-dev</a><br>
</div></div></div></blockquote></div><br></div>
</div><div><div>_______________________________________________</div><div>logback-dev mailing list</div><div><a href="mailto:logback-dev@qos.ch">logback-dev@qos.ch</a></div><div><a href="http://mailman.qos.ch/mailman/listinfo/logback-dev">http://mailman.qos.ch/mailman/listinfo/logback-dev</a></div></div></div></span>
</blockquote>
<div>
<br>
</div>