sbt/internal/util-logging/src/test
Dream 1a1b1dca4a
[2.x] refactor: Extract color-default logic as a pure function (#8817)
**Problem**
The color-detection logic in Terminal.scala is interleaved with side
effects (system property reads, environment checks) making it hard to
understand and impossible to unit test.

**Solution**
Extract a pure `isColorDefault` function that takes all inputs as
parameters and returns whether color should be enabled. The existing
`useColorDefault` delegates to it. Add unit tests covering all priority
levels and heuristic branches.

Fixes #6050
2026-02-26 01:19:26 -05:00
..
resources Reimplement multi-logger using log4j2 2017-01-13 02:49:12 -05:00
scala [2.x] refactor: Extract color-default logic as a pure function (#8817) 2026-02-26 01:19:26 -05:00