一键导入
update-logging
Apply OCS-CI logging guidelines to a Python test file or module
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Apply OCS-CI logging guidelines to a Python test file or module
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | update-logging |
| description | Apply OCS-CI logging guidelines to a Python test file or module |
| authoritative_source | docs/logging_guide.md |
| last_synced | "2026-05-01T00:00:00.000Z" |
| args | {"file_path":{"description":"Path to the Python file to update","required":true}} |
Applies OCS-CI logging guidelines from docs/logging_guide.md to Python files.
Authoritative Source: docs/logging_guide.md contains ALL guidelines, patterns, anti-patterns,
examples, log levels, and decision criteria. This skill is purely an automation wrapper.
docs/logging_guide.mddocs/logging_guide.mddocs/logging_guide.mddocs/logging_guide.mdCRITICAL - Read the Guide First: Before making ANY changes, read docs/logging_guide.md in full.
It is your complete instruction set.
Determine which category the file belongs to (see guide's "Usage by Code Type" section):
tests/)ocs_ci/deployment/)ocs_ci/helpers/, ocs_ci/utility/)ocs_ci/ocs/resources/)ocs_ci/framework/)Each type has different logging expectations documented in the guide.
Read the file and identify all logging issues documented in the guide's "Anti-Patterns to Avoid" section.
Apply fixes using patterns from the guide's "Common Patterns" and level-specific sections (CRITICAL, ERROR, WARNING, TEST_STEP, INFO, ASSERTION, DEBUG, AI_DATA).
Add missing logging at key points based on file type guidance and the guide's examples.
All decisions about logging come from docs/logging_guide.md:
/update-logging tests/functional/test_example.py
or
/update-logging ocs_ci/helpers/helpers.py
When logging guidelines evolve:
docs/logging_guide.md (the authoritative source)last_synced date in this file's frontmatterNote: If the guide's structure or workflow changes significantly, this SKILL.md may need updates to its workflow steps. Otherwise, all content changes happen in the guide only.