Example #1
0
    def __init__(self, logya):
        """Initialize HTTPServer listening on the specified host and port."""

        self.logya = logya
        self.logya.init_env()

        logging.basicConfig(level=logging.INFO)

        HTTPServer.__init__(self, (self.logya.host, self.logya.port),
                            HTTPRequestHandler)
Example #2
0
    def __init__(self, logya):
        """Initialize HTTPServer listening on the specified host and port."""

        self.logya = logya
        self.logya.init_env()

        logging.basicConfig(level=logging.INFO)

        HTTPServer.__init__(
            self, (self.logya.host, self.logya.port), HTTPRequestHandler)
Example #3
0
    def __init__(self, logya):
        '''Initialize HTTPServer listening on the specified host and port.'''

        self.logya = logya
        self.logya.init_env()

        log_file = os.path.join(self.logya.dir_current, 'server.log')
        logging.basicConfig(filename=log_file, level=logging.INFO)

        HTTPServer.__init__(
            self, (self.logya.host, self.logya.port), HTTPRequestHandler)
Example #4
0
    def __init__(self, logya):
        '''Initialize HTTPServer listening on the specified host and port.'''

        self.logya = logya
        self.logya.init_env()

        log_file = os.path.join(self.logya.dir_current, 'server.log')
        logging.basicConfig(filename=log_file, level=logging.INFO)

        HTTPServer.__init__(self, (self.logya.host, self.logya.port),
                            HTTPRequestHandler)