Practice – devcor_350-901_Cisco_Platforms

Strength:
0%
Answered: 0 • Correct: 0 • Incorrect: 0

Logged in as Guest

Fill in the formatter that emits key=value logs for CI troubleshooting.

Drag the correct code snippets from the options panel into the placeholders in the code window.

import logging logger = logging.getLogger("pipeline") handler = logging.StreamHandler() handler.setFormatter(logging.Formatter({{1}})) logger.addHandler(handler) logger.setLevel(logging.INFO) logger.info("deploy_event status=%s", "success")

Drag a snippet from the right into each blank box in the code.

Available snippets

"json"
"%(name)s:%(lineno)d"
"%Y-%m-%d %H:%M:%S"
"%(asctime)s - %(message)s"
"{asctime}{level}{message}"
"%(message)"
"%(levelname)s - %(message)s"
"%(asctime)s level=%(levelname)s msg=%(message)s"