Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow disabling colors in the output #23269

Open
mrkam2 opened this issue Jan 7, 2025 · 0 comments
Open

Allow disabling colors in the output #23269

mrkam2 opened this issue Jan 7, 2025 · 0 comments
Labels
core runtime issues related to core runtime feature request request for unsupported feature or enhancement

Comments

@mrkam2
Copy link

mrkam2 commented Jan 7, 2025

Describe the issue

onnxruntime/core/common/logging/sinks/ostream_sink.cc defines message color activator sequences and then uses them unconditionally. When redirecting this output into a file, it becomes less readable. Would be great to have an option to disable the use of colors in the output.

To reproduce

Here is an example of the output captured by the logging system:

2025/01/07 00:02:06 [stderr] �[1;31m2025-01-07 00:02:06.180133144 [E:onnxruntime:Default, provider_bridge_ort.cc:1862 TryGetProviderInfo_CUDA] /onnxruntime_src/onnxruntime/core/session/provider_bridge_ort.cc:1539 onnxruntime::Provider& onnxruntime::ProviderLibrary::Get() [ONNXRuntimeError] : 1 : FAIL : Failed to load library libonnxruntime_providers_cuda.so with error: libcudnn.so.9: cannot open shared object file: No such file or directory
2025/01/07 00:02:06 [stderr] �[m

Urgency

No response

Platform

Linux

OS Version

Ubuntu 22.04.1

ONNX Runtime Installation

Released Package

ONNX Runtime Version or Commit ID

1.16.1

ONNX Runtime API

Python

Architecture

X64

Execution Provider

CUDA

Execution Provider Library Version

No response

@snnn snnn added core runtime issues related to core runtime feature request request for unsupported feature or enhancement labels Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core runtime issues related to core runtime feature request request for unsupported feature or enhancement
Projects
None yet
Development

No branches or pull requests

2 participants