[Pidgin] #6140: XML logger

Pidgin trac at pidgin.im
Mon Jun 30 14:56:43 EDT 2008


#6140: XML logger
------------------------+---------------------------------------------------
  Reporter:  samuel     |       Owner:                    
      Type:  patch      |      Status:  new               
  Priority:  minor      |   Milestone:                    
 Component:  libpurple  |     Version:  2.4.2             
Resolution:             |    Keywords:  xml logger history
   Pending:  0          |  
------------------------+---------------------------------------------------
Comment (by deryni):

 Replying to [comment:3 samuel]:

 > Yes, you are right, this is a problem. But the current html logger has
 the same problem, the html-log is not well-formed during the conversation.

 Yes, the html logger has this defect as well but html doesn't have the
 same
 well-formedness requirements that XML does. That is html processing
 entities
 are allowed to be forgiving to well-formedness errors (or at least have a
 history of doing so and are unlikely to change that). XML processing
 entities
 are (more-or-less) explicitely not allowed to be similarly forgiving, thus
 causing significantly greater annoyance if logs are malformed.

 > Currently I am dealing with this problem by complet resaving of the file
 after each message. Yes, it looks little ugly, but I think this is not
 real problem, because the logs are always small files (I do not have log
 greater than 4kB).

 That is a problem because it is an enormous amount of unnecessary churning
 of
 the disk. At least as far as I'm concerned. This will definitely cause a
 number of complaints from people (especially those who have home
 directories
 mounted over things like NFS).

 > I do not sea reason to have many different loggers, one good logger is
 enough and I want such a logger.

 One good logger might be fine, but it also likely to be much more than
 many
 people care about if it needs to cater to what some small set of people
 want
 (which is exactly what plugin addable loggers are good for). Personally, I
 use, and have used for years, the text logger and am more than satisfied
 with
 it.

 > I just want logger to log all important information about the
 conversation and no current logger do this.

 What information specifically are the current loggers not logging that you
 want included? Can that information not be added to the logs as-is without
 requiring a new logging type (or even with a new logging type) but without
 invasive changes to the logging system itself? If not, why not?

-- 
Ticket URL: <http://developer.pidgin.im/ticket/6140#comment:5>
Pidgin <http://pidgin.im>
Pidgin


More information about the Tracker mailing list