|
|
@ -20,12 +20,11 @@ from stacosys.interface.web import admin
|
|
|
|
def configure_logging(level):
|
|
|
|
def configure_logging(level):
|
|
|
|
root_logger = logging.getLogger()
|
|
|
|
root_logger = logging.getLogger()
|
|
|
|
root_logger.setLevel(level)
|
|
|
|
root_logger.setLevel(level)
|
|
|
|
ch = logging.StreamHandler()
|
|
|
|
handler = logging.StreamHandler()
|
|
|
|
ch.setLevel(level)
|
|
|
|
handler.setLevel(level)
|
|
|
|
formatter = logging.Formatter(
|
|
|
|
formatter = logging.Formatter("[%(asctime)s] %(name)s %(levelname)s %(message)s")
|
|
|
|
"[%(asctime)s] %(name)s %(levelname)s %(message)s")
|
|
|
|
handler.setFormatter(formatter)
|
|
|
|
ch.setFormatter(formatter)
|
|
|
|
root_logger.addHandler(handler)
|
|
|
|
root_logger.addHandler(ch)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def stacosys_server(config_pathname):
|
|
|
|
def stacosys_server(config_pathname):
|
|
|
|