How to use the sap.cf_logging function in sap

To help you get started, we’ve selected a few sap examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github SAP / cf-python-logging-support / tests / unit / test_init.py View on Github external
def test_init_called_twice(mocker):
    """ test cf_logging.init can be called only once """
    framework = mocker.Mock(Framework)
    cf_logging._SETUP_DONE = False
    cf_logging.init(framework, level=logging.DEBUG)
    cf_logging.init(framework, level=logging.DEBUG)
github SAP / cf-python-logging-support / tests / test_sanic_logging.py View on Github external
def _set_up_sanic_logging(app, level=logging.DEBUG):
    cf_logging._SETUP_DONE = False
    sanic_logging.init(app, level)
github SAP / cf-python-logging-support / tests / unit / test_init.py View on Github external
def test_init_called_twice(mocker):
    """ test cf_logging.init can be called only once """
    framework = mocker.Mock(Framework)
    cf_logging._SETUP_DONE = False
    cf_logging.init(framework, level=logging.DEBUG)
    cf_logging.init(framework, level=logging.DEBUG)
github SAP / cf-python-logging-support / tests / test_falcon_logging.py View on Github external
def _set_up_falcon_logging(app, *args):
    cf_logging._SETUP_DONE = False
    falcon_logging.init(app, logging.DEBUG, *args)
github SAP / cf-python-logging-support / tests / test_job_logging.py View on Github external
def before_each():
    """ reset logging framework """
    cf_logging._SETUP_DONE = False