Skip to content

Conversation

@c-dilks
Copy link
Member

@c-dilks c-dilks commented Nov 17, 2025

⚠️ Breaking Changes ⚠️

  • changed OptionParser default log level from FINE to INFO; this means logs will be quieter by default
  • classes which called DefaultLogger.debug(), which effectively sets the log level to FINE, will also be quieter

🐛 Bug Fix 🐛

  • remove DefaultLogger, fixing Stderr and stdout are being hijacked #947, since using DefaultLogger and SplitLogger simultaneously causes neither of them to work at all
  • the "standard" logger instances (via Logger.getLogger and similar) remain for now
    • PR fix: use SplitLogger for all loggers #952 is a followup PR that proposes converting them to SplitLogger
    • if any such stream "hijacking" continues to occur, using SplitLogger everywhere "should" fix things once and for all

🚧 Features 🚧

  • propagate log level of OptionParser (which user sets with -l) to all new SplitLogger instances
    • handled by new singleton SplitLoggerConfig
    • parser.syncLogLevel() may be used to set the level of a Logger to match this level; typically used when an OptionParser instance owner also owns a Logger instance
    • parser.overrideLogLevel() may be used to override the level of a SplitLogger for any class, to handle the case where we don't want the level of OptionParser or SplitLoggerConfig to be used

@c-dilks c-dilks linked an issue Nov 17, 2025 that may be closed by this pull request
c-dilks added a commit that referenced this pull request Nov 17, 2025
This PR extends #951 by replacing all `Logger.getLogger` patterns with
`SplitLogger.create`.
@c-dilks c-dilks marked this pull request as ready for review November 17, 2025 22:54
@baltzell baltzell merged commit 16c8d11 into development Nov 22, 2025
40 checks passed
@baltzell baltzell deleted the timber branch November 22, 2025 03:50
@c-dilks c-dilks restored the timber branch November 24, 2025 20:38
@c-dilks c-dilks deleted the timber branch November 24, 2025 20:58
c-dilks added a commit that referenced this pull request Nov 24, 2025
This PR extends #951 by replacing all `Logger.getLogger` patterns with
`SplitLogger.create`.
tongtongcao pushed a commit that referenced this pull request Dec 5, 2025
* refactor!: remove `DefaultLogger`

* feat: propagate log level of `OptionParser` to its owner's class instances

* refactor: rename and document

* fix: sync levels for all classes in `postprocess`

* fix: just apply the level to all new `SplitLogger`s

* fix: syncing

* fix: depana

* doc: singleton
tongtongcao pushed a commit that referenced this pull request Dec 5, 2025
* refactor!: remove `DefaultLogger`

* feat: propagate log level of `OptionParser` to its owner's class instances

* refactor: rename and document

* fix: sync levels for all classes in `postprocess`

* fix: just apply the level to all new `SplitLogger`s

* fix: syncing

* fix: depana

* doc: singleton
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.

Stderr and stdout are being hijacked

3 participants