Skip to content

[core] Configure RLogger through ROOT_LOG environment variable - #23516

Open
ravindra-RKB wants to merge 1 commit into
root-project:masterfrom
ravindra-RKB:feature-rlogger-envvar
Open

ravindra-RKB wants to merge 1 commit into
root-project:masterfrom
ravindra-RKB:feature-rlogger-envvar

Conversation

@ravindra-RKB

Copy link
Copy Markdown
Contributor

This Pull request:

Changes or fixes:

This PR implements reading the ROOT_LOG environment variable to configure the verbosity for channels and globally, resolving issue #7614.

It allows setting verbosity for specific channels like:
export ROOT_LOG='ROOT.InterpreterPerf=Debug(3),ROOT.RBrowser=Error'
and also supports setting a global fallback like:
export ROOT_LOG='Info,ROOT.RBrowser=Error'

I have also added a unit test in testLogger.cxx to verify the environment variable string parsing logic.

Checklist:

  • tested changes locally
  • updated the docs (if necessary)

Fixes root-project#7614.
This reads ROOT_LOG environment variable to configure the verbosity for channels and globally. Example: export ROOT_LOG='ROOT.InterpreterPerf=Debug(3),ROOT.RBrowser=Error'
@ravindra-RKB
ravindra-RKB force-pushed the feature-rlogger-envvar branch from 9c75dca to 558fe09 Compare October 27, 2026 18:28
@ravindra-RKB

Copy link
Copy Markdown
Contributor Author

Hi @dpiparo @vepadulano,

I have rebased this PR onto the latest master and ensured all tests and formatting are up to date. Whenever you have a moment, could you please take a look or trigger the CI workflow? Thank you!

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants