Skip to content

Polish stdlib logging behavior#32

Merged
codeforester merged 1 commit into
masterfrom
enhancement/18-20260618-logging-polish
Jun 18, 2026
Merged

Polish stdlib logging behavior#32
codeforester merged 1 commit into
masterfrom
enhancement/18-20260618-logging-polish

Conversation

@codeforester

Copy link
Copy Markdown
Owner

Summary

  • Respect NO_COLOR when initializing stdlib terminal colors.
  • Compose structured log records before one final stderr write.
  • Reuse bounded caller-location logic for file-log unknown-logger warnings.
  • Document stdout/stderr behavior for print helpers and the NO_COLOR contract.

Validation

  • RED: focused logging tests failed before the fix for the three new contracts.
  • GREEN: bats --filter "(NO_COLOR|one final printf|file logging helpers)" lib/bash/std/tests/lib_std.bats
  • bats --filter "(color initialization|NO_COLOR)" lib/bash/std/tests/lib_std.bats
  • bats lib/bash/std/tests/lib_std.bats
  • shellcheck --severity=error lib/bash/std/lib_std.sh lib/bash/std/tests/lib_std.bats
  • git diff --check
  • ./tests/validate.sh

Fixes #18

@codeforester codeforester force-pushed the enhancement/18-20260618-logging-polish branch from 05da7f1 to 4618502 Compare June 18, 2026 19:28
@codeforester codeforester merged commit 74978b7 into master Jun 18, 2026
2 checks passed
@codeforester codeforester deleted the enhancement/18-20260618-logging-polish branch June 18, 2026 19:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Polish logging color, atomicity, and file-location behavior

1 participant