microsoft / microsoft/onnxruntime

set log level with environment variable

Open
#8,599 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

contributions welcome feature request
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.