Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 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)