# -*- coding: utf-8 -*-
from __future__ import unicode_literals
__doc__ = '''
==========================================
:mod:`irc3.plugins.log` Log plugin
==========================================

Logging / debuging plugin

..
    >>> from testing import IrcBot

Usage::

    >>> bot = IrcBot()
    >>> bot.include('irc3.plugins.log')
'''
import logging
import irc3


@irc3.plugin
class RawLog(object):

    def __init__(self, bot):
        self.bot = bot
        self.log = logging.getLogger('raw.' + bot.nick)
        self.log.setLevel(logging.DEBUG)

    @irc3.event(r'^(?P<raw>.*)', venusian_category='irc3.debug')
    def debug(self, raw):
        if not (' 372 ' in raw or ' 00' in raw or raw.startswith('PING')):
            if raw.strip():
                self.log.debug(raw)

d2d64592452c6c24b5a9c8ad7fca74f06863f929
<mask token>


@irc3.plugin
class RawLog(object):

    def __init__(self, bot):
        self.bot = bot
        self.log = logging.getLogger('raw.' + bot.nick)
        self.log.setLevel(logging.DEBUG)
    <mask token>

<mask token>


@irc3.plugin
class RawLog(object):

    def __init__(self, bot):
        self.bot = bot
        self.log = logging.getLogger('raw.' + bot.nick)
        self.log.setLevel(logging.DEBUG)

    @irc3.event('^(?P<raw>.*)', venusian_category='irc3.debug')
    def debug(self, raw):
        if not (' 372 ' in raw or ' 00' in raw or raw.startswith('PING')):
            if raw.strip():
                self.log.debug(raw)

<mask token>
__doc__ = """
==========================================
:mod:`irc3.plugins.log` Log plugin
==========================================

Logging / debuging plugin

..
    >>> from testing import IrcBot

Usage::

    >>> bot = IrcBot()
    >>> bot.include('irc3.plugins.log')
"""
<mask token>


@irc3.plugin
class RawLog(object):

    def __init__(self, bot):
        self.bot = bot
        self.log = logging.getLogger('raw.' + bot.nick)
        self.log.setLevel(logging.DEBUG)

    @irc3.event('^(?P<raw>.*)', venusian_category='irc3.debug')
    def debug(self, raw):
        if not (' 372 ' in raw or ' 00' in raw or raw.startswith('PING')):
            if raw.strip():
                self.log.debug(raw)

from __future__ import unicode_literals
__doc__ = """
==========================================
:mod:`irc3.plugins.log` Log plugin
==========================================

Logging / debuging plugin

..
    >>> from testing import IrcBot

Usage::

    >>> bot = IrcBot()
    >>> bot.include('irc3.plugins.log')
"""
import logging
import irc3


@irc3.plugin
class RawLog(object):

    def __init__(self, bot):
        self.bot = bot
        self.log = logging.getLogger('raw.' + bot.nick)
        self.log.setLevel(logging.DEBUG)

    @irc3.event('^(?P<raw>.*)', venusian_category='irc3.debug')
    def debug(self, raw):
        if not (' 372 ' in raw or ' 00' in raw or raw.startswith('PING')):
            if raw.strip():
                self.log.debug(raw)

# -*- coding: utf-8 -*-
from __future__ import unicode_literals
__doc__ = '''
==========================================
:mod:`irc3.plugins.log` Log plugin
==========================================

Logging / debuging plugin

..
    >>> from testing import IrcBot

Usage::

    >>> bot = IrcBot()
    >>> bot.include('irc3.plugins.log')
'''
import logging
import irc3


@irc3.plugin
class RawLog(object):

    def __init__(self, bot):
        self.bot = bot
        self.log = logging.getLogger('raw.' + bot.nick)
        self.log.setLevel(logging.DEBUG)

    @irc3.event(r'^(?P<raw>.*)', venusian_category='irc3.debug')
    def debug(self, raw):
        if not (' 372 ' in raw or ' 00' in raw or raw.startswith('PING')):
            if raw.strip():
                self.log.debug(raw)
