Hi Devs, Using EM I''ve written and IRC logger (all it does is log/rotate/archive/email the logs). I''d like to test it by logging several high-activity irc.freenode.net channels... any suggestions? I''m new to the irc world and so far #suse is the busiest I''ve seen... I''m logging 16 channels to try and get the volume up. Except for suse the rest are low volume. I can''t claim it is an excellent/refernce example of EM - I didn''t use the line and text or line and text2 protocols (only because I wasn''t aware of them when starting), but over time it might be useful example to have in any examples dir. Appreciate any suggestions. Mark
On Jan 3, 2008 6:38 AM, Mark Van De Vyver <mvyver at gmail.com> wrote:> Hi Devs, > Using EM I''ve written and IRC logger (all it does is > log/rotate/archive/email the logs). > I''d like to test it by logging several high-activity irc.freenode.net > channels... any suggestions? > I''m new to the irc world and so far #suse is the busiest I''ve seen... > I''m logging 16 channels to try and get the volume up. Except for suse > the rest are low volume. > > I can''t claim it is an excellent/refernce example of EM - I didn''t use > the line and text or line and text2 protocols (only because I wasn''t > aware of them when starting), but over time it might be useful example > to have in any examples dir. >I would like to see this as a sample in the distro. How hard would it be to refit using the line-oriented protocol handlers? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/eventmachine-talk/attachments/20080103/649f972e/attachment.html
On Jan 4, 2008 12:19 AM, Francis Cianfrocca <garbagecat10 at gmail.com> wrote:> > On Jan 3, 2008 6:38 AM, Mark Van De Vyver <mvyver at gmail.com> wrote: > > > > Hi Devs, > > Using EM I''ve written and IRC logger (all it does is > > log/rotate/archive/email the logs). > > I''d like to test it by logging several high-activity irc.freenode.net > > channels... any suggestions? > > I''m new to the irc world and so far #suse is the busiest I''ve seen... > > I''m logging 16 channels to try and get the volume up. Except for suse > > the rest are low volume. > > > > I can''t claim it is an excellent/refernce example of EM - I didn''t use > > the line and text or line and text2 protocols (only because I wasn''t > > aware of them when starting), but over time it might be useful example > > to have in any examples dir. > > > > I would like to see this as a sample in the distro. How hard would it be to > refit using the line-oriented protocol handlers? >Not too difficult, I _think_, AFAICT I''d use receive_line instead of receive_data and I''d need to refactor somethings. For best performance/robustness, which l&t protocol should I use 1 or 2? I recall there was a discussion on the list about a line-feed ''parsing'' issue, was that resolved in both protocols? It may be informative to have both to illustrate what changes? Cheers Mark
Here is a little ruby-irc client I put together one day for testing. I was thinking about adding ncurses support to it so typing wouldn''t scroll off the screen on new input... I could scale this down allot if you wanted a simple example Fancis. http://pastie.caboo.se/private/cczyy5lrlzlqix4lnsyxyg