Skip to content

Conversation

@rismay
Copy link
Member

@rismay rismay commented Aug 23, 2025

Summary

  • document global and per-logger exposure limits in TheProblemSpace article

Testing

  • swift test
  • swiftlint (fails: command not found)

https://chatgpt.com/codex/tasks/task_e_68aa0ac36f88833381175bd00f31931c

Copilot AI review requested due to automatic review settings August 23, 2025 19:20
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds documentation explaining WrkstrmLog's exposure level system, detailing how global and per-logger limits control message visibility. The documentation clarifies the relationship between Log.globalExposureLevel and individual logger maxExposureLevel settings.

Key Changes

  • Documents the global exposure level configuration via Log.globalExposureLevel
  • Explains per-logger exposure limits using maxExposureLevel parameter
  • Notes the removal of the deprecated Log.removeExposureLimit API

Comment on lines +166 to +168
if libraryLogger.maxExposureLevel >= .debug {
libraryLogger.debug("Handshake succeeded")
}
Copy link

Copilot AI Aug 23, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The conditional check if libraryLogger.maxExposureLevel >= .debug is redundant since the logger's debug method already respects the exposure level internally. This example suggests manual checking is required when the library handles this automatically.

Suggested change
if libraryLogger.maxExposureLevel >= .debug {
libraryLogger.debug("Handshake succeeded")
}
libraryLogger.debug("Handshake succeeded")

Copilot uses AI. Check for mistakes.
@rismay rismay merged commit 7d7173c into main Aug 23, 2025
3 checks passed
@rismay rismay deleted the codex/update-project-documentation branch August 23, 2025 20:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants