=====
 LOG 
=====
| 

about
-----
| 

:author:  Bart Thate <bart@gozerbot.org>
:contact: IRCNET/#dunkbots
:website: http://plugins.gozerbot.org
:license: Public Domain
 
| 

description
-----------
| 

logs related commands

| 

commands
--------
| 


1) log-back (back)

2) log-last (last)

    log-last [<nr>] [<nick>] [<txt>] .. show lastlines of channel or user

    ::

        <user> !log-last dunker
        <output> no result found

    ::

        <user> !log-last 5 dunker
        <output> no result found

    ::

        <user> !log-last dunker http
        <output> no result found

    ::

        <user> !log-last 5 dunker http
        <output> no result found

3) log-len (log-size)

    show size of log file of the channel the command was given in

    ::

        <user> !log-len
        <output> 241535

4) log-list

    show list of current logged channels

    ::

        <user> !log-list
        <output> [u'#dunkbots', '#test']

5) log-off

    disable logging of the channel in which the command was given

    ::

        <user> !log-off
        <output> logging disabled in #test

6) log-on

    enable logging of the channel in which the command was given

    ::

        <user> !log-on
        <output> logging enabled in #test

7) log-search

    log-search [<nrtimes>] <txt> .. search the log from the beginning

    ::

        <user> !log-search http
        <output> [21 Jun 2007 17:29] <test> validate http://gozerbot.org .. [21 Jun 2007 18:10] <test> !rss-add slashdot
        <output>  http://slashdot.org/slashdot.xml .. [21 Jun 2007 18:11] <test> !rss-add slashdot http://slashdot.org/slashdot.xml
        <output>  .. [21 Jun 2007 18:27] <test> !rss-add slashdot http://slashdot.org/slashdot.xml .. [21 Jun 2007 18:28]
        <output>  <test> !rss-add slashdot http://slashdot.org/slashdot.xml .. [21 Jun 2007 18:29] <test> !rss-add slashdot
        <output>  http://slashdot.org/slashdot.xml .. [21 Jun 2007 18:35] <test> !rss-add slashdot http://slashdot.org/slashdot.xml
        <output>  .. [21 Jun 2007 19:47] <test> !rss-add slashdot http://slashdot.org/slashdot.xml .. [21 Jun 2007 19:49]
        <output>  <test> !rss-add slashdot http://slashdot.org/slashdot.xml .. [21 Jun 2007 19:51] <test> !rss-add slashdot
        <output>  http://slashdot.org/slashdot.xml

    ::

        <user> !log-search 10 http
        <output> [21 Jun 2007 17:29] <test> validate http://gozerbot.org .. [21 Jun 2007 18:10] <test> !rss-add slashdot
        <output>  http://slashdot.org/slashdot.xml .. [21 Jun 2007 18:11] <test> !rss-add slashdot http://slashdot.org/slashdot.xml
        <output>  .. [21 Jun 2007 18:27] <test> !rss-add slashdot http://slashdot.org/slashdot.xml .. [21 Jun 2007 18:28]
        <output>  <test> !rss-add slashdot http://slashdot.org/slashdot.xml .. [21 Jun 2007 18:29] <test> !rss-add slashdot
        <output>  http://slashdot.org/slashdot.xml .. [21 Jun 2007 18:35] <test> !rss-add slashdot http://slashdot.org/slashdot.xml
        <output>  .. [21 Jun 2007 19:47] <test> !rss-add slashdot http://slashdot.org/slashdot.xml .. [21 Jun 2007 19:49]
        <output>  <test> !rss-add slashdot http://slashdot.org/slashdot.xml .. [21 Jun 2007 19:51] <test> !rss-add slashdot
        <output>  http://slashdot.org/slashdot.xml

8) log-time

    show log since given time

    ::

        <user> !log-time 21:00
        <output> no data found

9) seen

    seen <nick> .. show last logged line of <nick>

    ::

        <user> !seen dunker
        <output> no dunker in #test log
