def setup_logger():
    logger = logging.getLogger('vcstools')
    logger.setLevel(logging.WARN)
    handler = logging.StreamHandler()
    handler.setLevel(logging.WARN)

    # create formatter
    template = '%(levelname)s [%(name)s] %(message)s[/%(name)s]'
    formatter = logging.Formatter(template)
    # add formatter to handler
    handler.setFormatter(formatter)

    # add handler to logger
    logger.addHandler(handler)
event handler for mode change
dataset/ETHPy150Open vcstools/vcstools/src/vcstools/__init__.py/setup_logger--crossover with--dataset/ETHPy150Open FishPi/FishPi-POCV---Command---Control/fishpi/ui/main_view_tk.py/ControlsFrame.on_set_auto_pilot_mode