Changes between Version 16 and Version 17 of IrcLogsPlugin
- Timestamp:
- Jul 21, 2009, 1:29:36 PM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
IrcLogsPlugin
v16 v17 66 66 '''Note:''' In order to enable indexing for 0.11, you'll currently need a patch, see comment:ticket:1183:6. 67 67 68 == Configuration beta ==68 == Configuration Beta == 69 69 70 70 === Quick Config === … … 90 90 network = FreeNode 91 91 basepath = /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. 92 paths = %%(channel)s/%%(channel)s-%%Y-%%m-%%d.log 97 93 navbutton = trac irc logs 98 94 format = supy # gozer is also supported out of the box. … … 101 97 timezone = UTC 102 98 }}} 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.''105 99 106 100 === DB Config === … … 136 130 {{{ 137 131 format.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 132 format.gozer.path = %%(network)s/simple/%%(channel)s.%%Y%%m%%d.log 141 133 format.gozer.timestamp_format = %%Y%%m%%d %%H%%M%%S 142 134 format.gozer.timezone = utc … … 180 172 }}} 181 173 174 == Wiki Macros Beta == 175 176 === Trac Links === 177 178 Link 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 184 The 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 188 Show conversation excerpts from IRC logs: 189 {{{ 190 [[IrcLogQuote(channel=trac, datetime=UTC2009-07-19T13:20:30, offset=3360)]] 191 }}} 192 channel is the default channel if none is specified. ''There may not be a default channel setup though.'' 193 194 UTC date formatted to ''UTCYYYY-MM-DDTHH:MM:SS'', and (optional) offset, number so seconds to display. 195 196 === "Live" Log === 197 198 Show 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 }}} 182 202 This 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). 183 203