Did I find the right examples for you? yes no

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

src/c/l/cloudbase-init-HEAD/cloudbaseinit/shell.py   cloudbase-init(Download)
def main():
    CONF(sys.argv[1:])
    logging.setup('cloudbaseinit')
 
    init.InitManager().configure_host()

src/c/l/cloudbase-init-HEAD/cloudbaseinit/tests/utils/test_log.py   cloudbase-init(Download)
def test_setup(mock_ContextFormatter, mock_SerialPortHandler, mock_getLogger,
               mock_setup):
    log.setup(product_name='fake name')
    mock_setup.assert_called_once_with('fake name')
    mock_getLogger.assert_called_once_with('fake name')