#NEWLINE# def __init__( self , build_root , work_dir , log_level , log_dir = None , services = None ) : #NEWLINE# #INDENT# '\n    :param string build_root: The pants build root.\n    :param string work_dir: The pants work directory.\n    :param int log_level: The log level to use for daemon logging.\n    :param string log_dir: The directory to use for file-based logging via the daemon. (Optional)\n    :param tuple services: A tuple of PantsService instances to launch/manage. (Optional)\n    ' #NEWLINE# super ( PantsDaemon , self ) . __init__ ( name = 'pantsd' ) #NEWLINE# self . _logger = logging . getLogger ( __name__ ) #NEWLINE# self . _build_root = build_root #NEWLINE# self . _work_dir = work_dir #NEWLINE# self . _log_level = log_level #NEWLINE# self . _log_dir = ( log_dir or os . path . join ( work_dir , self . name ) ) #NEWLINE# self . _services = ( log_dir or ( ) ) #NEWLINE# self . _socket_map = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# self . _kill_switch = threading . Event ( )