<s> import logging <EOL> from fake_switches . brocade . command_processor . piping import PipingProcessor <EOL> from fake_switches . dell . dell_core import DellSwitchCore , DellShellSession <EOL> from fake_switches . dell10g . command_processor . default import Dell10GDefaultCommandProcessor <EOL> from fake_switches . terminal import LoggingTerminalController <EOL> class Dell10GSwitchCore ( DellSwitchCore ) : <EOL> def launch ( self , protocol , terminal_controller ) : <EOL> self . last_connection_id += <NUM_LIT:1> <EOL> self . logger = logging . getLogger ( "<STR_LIT>" % ( self . switch_configuration . name , self . last_connection_id , protocol ) ) <EOL> command_processor = Dell10GDefaultCommandProcessor ( <EOL> switch_configuration = self . switch_configuration , <EOL> terminal_controller = LoggingTerminalController ( self . logger , terminal_controller ) , <EOL> piping_processor = PipingProcessor ( self . logger ) , <EOL> logger = self . logger ) <EOL> return DellShellSession ( command_processor ) </s>
