# Path: libcloud_rest/log.py
# def get_logger(handler, level):
#     logger = logging.Logger('libcloud.rest', level=level)
#     formatter = logging.Formatter('%(asctime)s : %(levelname)-8s :'
#                                   ' %(message)s',
#                                   '%d %b %Y %H:%M:%S')
#     handler.setFormatter(formatter)
#     logger.addHandler(handler)
#     return logger
# 
# Path: libcloud_rest/constants.py
# VALID_LOG_LEVELS = ['DEBUG', 'ERROR', 'FATAL', 'CRITICAL', 'INFO', 'WARNING']


import os
import sys
import logging
import libcloud_rest.log
from optparse import OptionParser
from libcloud_rest.log import get_logger
from libcloud_rest.constants import VALID_LOG_LEVELS
    from werkzeug.serving import run_simple
    from libcloud_rest.application import LibcloudRestApp
# -*- coding:utf-8 -*-

sys.path.append(os.sep.join(
    os.path.dirname(os.path.abspath(__file__)).split(os.sep)[:-1]))


DEBUG = False



# Path: libcloud_rest/log.py
# def get_logger(handler, level):
#     logger = logging.Logger('libcloud.rest', level=level)
#     formatter = logging.Formatter('%(asctime)s : %(levelname)-8s :'
#                                   ' %(message)s',
#                                   '%d %b %Y %H:%M:%S')
#     handler.setFormatter(formatter)
#     logger.addHandler(handler)
#     return logger
# 
# Path: libcloud_rest/constants.py
# VALID_LOG_LEVELS = ['DEBUG', 'ERROR', 'FATAL', 'CRITICAL', 'INFO', 'WARNING']


# Path: libcloud_rest/server.py
import os
import sys
import logging
import libcloud_rest.log
from optparse import OptionParser
from libcloud_rest.log import get_logger
from libcloud_rest.constants import VALID_LOG_LEVELS
    from werkzeug.serving import run_simple
    from libcloud_rest.application import LibcloudRestApp

# -*- coding:utf-8 -*-

sys.path.append(os.sep.join(
    os.path.dirname(os.path.abspath(__file__)).split(os.sep)[:-1]))


DEBUG = False



def start_server(host, port, logger, debug):