def _setup_logging():
"""Sets up the logging options for a log with supplied name."""
product_name = "trio2o"
logging.setup(cfg.CONF, product_name)
LOG.info(_LI("Logging enabled!"))
LOG.info(_LI("%(prog)s version %(version)s"),
{'prog': sys.argv[0],
'version': version.version_info})
LOG.debug("command line: %s", " ".join(sys.argv))
评论列表
文章目录