Changes between Version 16 and Version 17 of IrcLogsPlugin


Ignore:
Timestamp:
Jul 21, 2009 3:29:36 PM (5 years ago)
Author:
anonymous
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • IrcLogsPlugin

    v16 v17  
    6666'''Note:''' In order to enable indexing for 0.11, you'll currently need a patch, see comment:ticket:1183:6. 
    6767 
    68 == Configuration beta == 
     68== Configuration Beta == 
    6969 
    7070=== Quick Config === 
     
    9090network = FreeNode 
    9191basepath = /var/log/supybot/irclogs 
    92 # ConfigParser braindamage workaround, see below 
    93 # path is what we are trying to set. 
    94 dateform = %%Y-%%m-%%d 
    95 paths = %%(channel)s/%%(channel)s-%(dateform)s.log 
    96 # done braindamage. 
     92paths = %%(channel)s/%%(channel)s-%%Y-%%m-%%d.log 
    9793navbutton = trac irc logs 
    9894format = supy  # gozer is also supported out of the box. 
     
    10197timezone = UTC 
    10298}}} 
    103  
    104 ''There is a bug in ConfigParser that causes string interpolation, even though parameters are excaped, it in values with %%(named)s variables and date format (%%Y.. etc) variables.  We require this functionality in the path option, so we have to split it into two variables to work around the issue.  Normally the path default is fine and shouldn't be overridden, but if the need arises, this workaround will be needed.'' 
    10599 
    106100=== DB Config === 
     
    136130{{{ 
    137131format.gozer.basepath = /var/lib/gozerbot/.gozerbot/logs/ 
    138 # the workaround again :P 
    139 gozerdate = %%Y%%m%%d 
    140 format.gozer.path = %%(network)s/simple/%%(channel)s.%(gozerdate).log 
     132format.gozer.path = %%(network)s/simple/%%(channel)s.%%Y%%m%%d.log 
    141133format.gozer.timestamp_format = %%Y%%m%%d %%H%%M%%S 
    142134format.gozer.timezone = utc 
     
    180172}}} 
    181173 
     174== Wiki Macros Beta == 
     175 
     176=== Trac Links === 
     177 
     178Link to an IRC conversation: 
     179{{{ 
     180[irclog:trac-UTC2008-02-11T18:03:27 View this trac conversation] 
     181[irclog:UTC2008-02-11T18:03:27 View this default conversation] 
     182}}} 
     183 
     184The format is (channel)-(timestamp).  For the default channel, simply use timestamp.  Timestamp is UTC date formatted to ''UTCYYYY-MM-DDTHH:MM:SS''. 
     185 
     186=== Quote === 
     187 
     188Show conversation excerpts from IRC logs: 
     189{{{ 
     190[[IrcLogQuote(channel=trac, datetime=UTC2009-07-19T13:20:30, offset=3360)]] 
     191}}} 
     192channel is the default channel if none is specified. ''There may not be a default channel setup though.'' 
     193 
     194UTC date formatted to ''UTCYYYY-MM-DDTHH:MM:SS'', and (optional) offset, number so seconds to display.  
     195 
     196=== "Live" Log === 
     197 
     198Show a "live" AJAX log display.  '''Note:''' This macro should be used sparingly; it should not be on the front page of a project in most cases. 
     199{{{ 
     200[[IrcLogLive]] 
     201}}} 
    182202This macro optionally takes two arguments: the first argument is the polling frequency in seconds (default is 60), the second argument is the number of lines to display (default is 10). 
    183203