<div dir="ltr"><div><div>Wouldn't you want to just use a different pattern, one that has commas between the fields?<br><br></div>Something like this:<br><br>%date,%level,%thread,%logger{10},%file,%line],%msg%n<br><br>
</div>I tried it and it produced content that looked like this:<br><br>2013-04-02 10:34:32,479,TRACE,Scanner-2,e.s.e.m.EFLContext,EFLContext.scala,220],services: Set(edu.stsci.efl.logging.LogbackService@2e751271)<br>2013-04-02 10:34:32,483,TRACE,Scanner-2,e.s.e.m.EFLContext,EFLContext.scala,213],[main] (Tue Apr 02 10:34:32 EDT 2013): Set(edu.stsci.efl.logging.LogbackService@2e751271)<br>
2013-04-02 10:34:32,483,TRACE,Scanner-2,e.s.e.m.EFLContext,EFLContext.scala,213],looking for: edu.stsci.efl.services.LoggerFactoryService<br>2013-04-02 10:34:32,483,TRACE,Scanner-2,e.s.e.m.EFLContext,EFLContext.scala,213],Some(edu.stsci.efl.logging.LogbackService@2e751271)<br>
2013-04-02 10:34:32,484,DEBUG,Scanner-2,e.s.e.d.DBModule,DBModule.scala,35],Starting DBModule<br>2013-04-02 10:34:32,485,TRACE,Scanner-2,e.s.e.m.EFLContext,EFLContext.scala,213],[main] (Tue Apr 02 10:34:32 EDT 2013): Set(edu.stsci.efl.logging.LogbackService@2e751271)<br>
2013-04-02 10:34:32,485,TRACE,Scanner-2,e.s.e.m.EFLContext,EFLContext.scala,213],looking for: edu.stsci.efl.services.PropertyService<br>2013-04-02 10:34:32,486,TRACE,Scanner-2,e.s.e.m.EFLContext,EFLContext.scala,213],None<br>
<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Apr 2, 2013 at 3:59 AM, Thorbjørn Ravn Andersen <span dir="ltr"><<a href="mailto:thunderaxiom@hotmail.com" target="_blank">thunderaxiom@hotmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div link="blue" vlink="purple" lang="DA"><div><p class="MsoNormal">Hi.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><span lang="EN-US">I want to create a log file which is not directly intended to be readable by humans but to use with Pivot Tables in Excel to generate reports (e.g. over http requests and their duration spread over the day for several months, that kind of thing).<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US">I was wondering what the best approach for doing that would be.<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">My guess would be a tab-separated file (to allow Excel to read it in as a CSV-file), with the first field being the timestamp in an Excel compatible form (e.g. a number formatted as a timestamp), and the remaining fields the individual items I need to analyze. (This is what I generate right now using ad-hoc Perl)<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US">(We can calculate on that 99.99% of the time that the application will exit with System.exit(0) in my main method, so it is not super important with having a solution robust against e.g. OutOfMemoryError, but I would like one that does not build a large data structure in memory like using JExcel to generate a spread sheet on the fly).<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US">Anyone who has experimented with this and have experiences to share?<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Thanks<span class="HOEnZb"><font color="#888888"><u></u><u></u></font></span></span></p><span class="HOEnZb"><font color="#888888"><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">/Thorbjørn<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal">
<span lang="EN-US"><u></u> <u></u></span></p></font></span></div></div><br>_______________________________________________<br>
Logback-user mailing list<br>
<a href="mailto:Logback-user@qos.ch">Logback-user@qos.ch</a><br>
<a href="http://mailman.qos.ch/mailman/listinfo/logback-user" target="_blank">http://mailman.qos.ch/mailman/listinfo/logback-user</a><br></blockquote></div><br><br clear="all"><br>-- <br>Family photographs are a critical legacy for<br>
ourselves and our descendants. Protect that<br>legacy with a digital backup and recovery plan.
</div>