Ticket #75 (new enhancement)

Opened 4 years ago

Last modified 1 year ago

Plain Text Log files

Reported by: Erin Tomson Assigned to: timothy
Priority: normal Component: Colloquy (GUI)
Version: Latest 2.1 Severity: normal
Keywords: text log transcript xml Cc:

Description

One big gripe I have, however, is the lack of support for raw text log files. I like to be able to open my log files in TextEdit?, or emacs, or less, or whatever, and to also be able to grep through old log files looking for stuff. The xml format of the log files makes this difficult.

Change History

10/06/05 18:13:10 changed by anonymous

  • owner changed from timothy to anonymous.
  • status changed from new to assigned.

This feature request has come up a few times from users that would like to use grep and/or user other programs to read their transcripts. I have been doing a lot of work on the internal transcript data objects to allow for future formats (like plain text, and CoreData? on Tiger). I haven't started on any of these new implementations, but the framework has been lain.

Other ideas such as a CLI command to parse the transcript into plain text has been proposed as well. A fairly simple XSL transformation could make this happen. I have attached an XSL file to do this, if your interested. If you have xsltproc installed you can output the plain text of a log by doing something like this:

xsltproc /Users/Timothy/Desktop/plainText.xsl /Users/Timothy/test.colloquyTranscript

Unfortunately xstlproc doesn't ship with Mac OS X 10.3, however it is available here: http://www.zveno.com/open_source/libxml2xslt.html

10/09/05 10:28:00 changed by anonymous

  • owner changed from anonymous to timothy.
  • status changed from assigned to new.

08/20/06 20:35:51 changed by rinoa

  • version changed from 2.0 (2D9) to Latest 2.1.

(follow-up: ↓ 6 ) 04/01/07 01:30:24 changed by Rinoa

Until we add this into the app, you can use a plugin: Transcript Convertors

04/29/07 16:53:21 changed by FrozenTrout

Unless it has been silently fixed, it seems the transcript convertor chokes on log files over a certain size: http://colloquy.info/project/ticket/1036 The insane xml logging (honestly, does it need to tag emoticons?) is irritating to view the logs outside of the transcript browser (which instantly crashes the app when I try to access it), and results in ridiculously large files. My Colloquy Transcripts folder is 771.3MB right now. Sure, there's a couple years worth of logs, but in those files the XML formatting and tags takes up more space than the actual content.

(in reply to: ↑ 4 ) 07/18/07 08:42:18 changed by smsm1

Replying to Rinoa:

Until we add this into the app, you can use a plugin: Transcript Convertors

The convertor doesn't work when you have some one say something many times, with no one else saying something in between. There is loss of data.

Both http://colloquy.info/extras/details.php?file=70 and http://colloquy.info/extras/details.php?file=54 should be removed until they are fixed.

So for an example (copy and paste): shaunmcdonald : hi [ 14:33 ] shaunmcdonald: does anyone know how to get plain text logs, that actually work [ 14:33 ] shaunmcdonald: as the converters would drop the last line that i just wrote [ 14:34 ] shaunmcdonald: well, everything apart from the first line, until someone else comes in and says something [ 14:34 ] shaunmcdonald: http://colloquy.info/extras/details.php?file=70 and http://colloquy.info/extras/details.php?file=54 should be removed until they are fixed [ 14:35 ] shaunmcdonald: I have had no repsonse when trying to report a problem

Becomes:

[2007-07-18 14::33:11] shaunmcdonald: hi

07/18/07 15:57:59 changed by Rinoa

The plugins not working is an entire new ticket which should be filed with a component of Third Party Plugins. File a ticket specifically saying that they aren't converting all words. Make sure that you have the entire transcript and that it just hasn't saved yet. We will not remove them from the site.