def main_service(): """Method to use with Openstack service. """ service.prepare_service() launcher = os_service.ServiceLauncher() launcher.launch_service(Persister()) launcher.wait()
from oslo_config import cfg #from oslo_log import log as logging import oslolog as logging from i18n import _ import sys import service import runlog2 as r2 service.prepare_service() LOG = logging.getLogger(__name__) # Oslo Logging uses INFO as default LOG.info("Oslo Logging") LOG.warning("Oslo Logging") LOG.error("Oslo Logging") print 'start to log' LOG.info("Oslo Logging") namespace="haha" LOG.error(_('loading notification handlers from %s'), namespace) LOG.error(_('logtocomapre')) r2.alarm()
def mainService(): service.prepare_service() launcher = os_service.ServiceLauncher() launcher.launch_service(AnomalyEngine()) launcher.wait()
def main(): service.prepare_service() print ' start to run server' app.build_server()