From predrg at gmail.com Sat May 5 09:32:55 2007 From: predrg at gmail.com (Predrag Radovic) Date: Sat, 05 May 2007 18:32:55 +0200 Subject: [Slogger] Slogger patch for better logging of background tabs Message-ID: <463CB1B7.1010802@gmail.com> Hello, Here is the small patch for better logging of the background tabs. Global constants are renamed to avoid global namespace collisions with several other extensions. Patch is made only on 'slogger.js' from installation package version 0.6.20061221 (currently the latest). I would suggest refactoring of the Slogger code to minimize the probability for future collision with other extensions. According to the mailing list archive, http://mozdev.org/pipermail/slogger/2007-February/000325.html, Michael Robinson already started some refactoring work. I also attached an example profile 'xml.js' for logging referrer and previous history location to XML file. Example demonstrates use of locally accessible argument 'doc' in a custom script. Good luck and many thanks for the useful extension to the original author and contributors, Predrag -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mozdev.org/pipermail/slogger/attachments/20070505/c29f62bf/attachment.html -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: slogger-logging_of_background_tabs.patch Url: http://mozdev.org/pipermail/slogger/attachments/20070505/c29f62bf/attachment.ksh -------------- next part -------------- A non-text attachment was scrubbed... Name: xml.js Type: application/x-js Size: 6035 bytes Desc: not available Url : http://mozdev.org/pipermail/slogger/attachments/20070505/c29f62bf/attachment.bin From donster999 at hotmail.com Tue May 15 05:36:48 2007 From: donster999 at hotmail.com (D 999) Date: Tue, 15 May 2007 05:36:48 -0700 Subject: [Slogger] XML log display gets confused with funny characters in titles Message-ID: Hi Ken,Just wanted to mention that the XML parsing with the stylesheet gets confused with funny charactersin titles so the XSLT doesnt display properly.XML Parsing Error: not well-formedLocation: file:///D:/Documents%20and%20Settings/user/Application%20Data/Mozilla/Firefox/Profiles/6343gx.default/slogger/archive/sloggerLog-2007-05-10.xmlLine Number 142, Column 19: Metacafe  Serving the World's Best Videosif you go to www.metacafe.com you can see the character in the title.the funny character doesn't show up on this copy and paste but I seem to get a few pages that do this.Thanks,Don _________________________________________________________________ Change is good. See what?s different about Windows Live Hotmail. www.windowslive-hotmail.com/learnmore/default.html?locale=en-us&ocid=TXT_TAGLM_HMWL_reten_changegood_0507 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mozdev.org/pipermail/slogger/attachments/20070515/5a6ab276/attachment.html From Jane.Coles at SpringValley.Co.UK Tue May 15 15:13:11 2007 From: Jane.Coles at SpringValley.Co.UK (Jane Coles) Date: Tue, 15 May 2007 23:13:11 +0100 Subject: [Slogger] XML log display gets confused with funny characters in titles Message-ID: <464A3077.2080502@SpringValley.Co.UK> Yes, I've noticed this. My (ugly hack of a) solution is to run the following shell script as a cron job every night: #!/bin/bash for xml in *-2007.xml do cp ${xml} bak/${xml} tr -cd '\011-\015[:print:]' < bak/${xml} > ${xml} done Any non-whitespace non-printable character gets deleted.