microsoft / microsoft/onnxruntime
set log level with environment variable
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 21.9k
- Forks
- 4.2k
- Avg merge
- 4d 8h
- Merged PRs (30d)
- 179
Description
Discussed in https://github.com/microsoft/onnxruntime/discussions/8112
Originally posted by zhaoyang-intel June 21, 2021
Hi,
I know there are ways to set log level programmatically in the c++ api.
Is there a way log level can be changed by setting environment variable (eg, export ORT_LOG_LEVEL="INFO")?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading discussion 8112 and locating the existing C++ logging-level configuration and any environment-variable handling in the repository. Confirm the expected ORT_LOG_LEVEL behavior and document or test the supported values; done means the log level can be selected through the environment variable without requiring programmatic configuration.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- observability-sre
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100