__author__ = 'brianoneill'

from test_lcdict_builders_top import LCDBuilderSub


class LCDBuilderSubA(LCDBuilderSub):
    @classmethod
    def add_to_lcdict(cls, lcd):
        """(Virtual) Call ``LCDict`` methods to augment ``lcd``.

        :param lcd: an ``LCDict``
        """
        # Set up a logger 'subA' and a file handler it exclusively uses.
        # Assume the code that uses this module is well-debugged and stable,
        # so we an set logger's level = ``ERROR``.
        #
        #   Messages logged by logger 'subA' will be written
        #       to logfile 'subA.log', and
        #       to root logger (propagate=True).
        #   Root logger will NOT log to 'subA.log' (attach_to_root=False)
        lcd.add_file_handler('subA-fh',
                             filename='subA.log',
                             mode='w',
                             formatter='logger_level_msg',
                             attach_to_root=False)
        lcd.add_logger('subA',
                       handlers='subA-fh',
                       level='ERROR',
                       propagate=True)

3480ce1d92e55226a7b725de827e849783c3b2af
<mask token>


class LCDBuilderSubA(LCDBuilderSub):
    <mask token>

<mask token>


class LCDBuilderSubA(LCDBuilderSub):

    @classmethod
    def add_to_lcdict(cls, lcd):
        """(Virtual) Call ``LCDict`` methods to augment ``lcd``.

        :param lcd: an ``LCDict``
        """
        lcd.add_file_handler('subA-fh', filename='subA.log', mode='w',
            formatter='logger_level_msg', attach_to_root=False)
        lcd.add_logger('subA', handlers='subA-fh', level='ERROR', propagate
            =True)

__author__ = 'brianoneill'
<mask token>


class LCDBuilderSubA(LCDBuilderSub):

    @classmethod
    def add_to_lcdict(cls, lcd):
        """(Virtual) Call ``LCDict`` methods to augment ``lcd``.

        :param lcd: an ``LCDict``
        """
        lcd.add_file_handler('subA-fh', filename='subA.log', mode='w',
            formatter='logger_level_msg', attach_to_root=False)
        lcd.add_logger('subA', handlers='subA-fh', level='ERROR', propagate
            =True)

__author__ = 'brianoneill'
from test_lcdict_builders_top import LCDBuilderSub


class LCDBuilderSubA(LCDBuilderSub):

    @classmethod
    def add_to_lcdict(cls, lcd):
        """(Virtual) Call ``LCDict`` methods to augment ``lcd``.

        :param lcd: an ``LCDict``
        """
        lcd.add_file_handler('subA-fh', filename='subA.log', mode='w',
            formatter='logger_level_msg', attach_to_root=False)
        lcd.add_logger('subA', handlers='subA-fh', level='ERROR', propagate
            =True)

__author__ = 'brianoneill'

from test_lcdict_builders_top import LCDBuilderSub


class LCDBuilderSubA(LCDBuilderSub):
    @classmethod
    def add_to_lcdict(cls, lcd):
        """(Virtual) Call ``LCDict`` methods to augment ``lcd``.

        :param lcd: an ``LCDict``
        """
        # Set up a logger 'subA' and a file handler it exclusively uses.
        # Assume the code that uses this module is well-debugged and stable,
        # so we an set logger's level = ``ERROR``.
        #
        #   Messages logged by logger 'subA' will be written
        #       to logfile 'subA.log', and
        #       to root logger (propagate=True).
        #   Root logger will NOT log to 'subA.log' (attach_to_root=False)
        lcd.add_file_handler('subA-fh',
                             filename='subA.log',
                             mode='w',
                             formatter='logger_level_msg',
                             attach_to_root=False)
        lcd.add_logger('subA',
                       handlers='subA-fh',
                       level='ERROR',
                       propagate=True)
