logging.h:309 onnxruntime::logging::LoggingManager::DefaultLogger Attempt to use DefaultLogger but none has been registered. #20064
Labels
stale
issues that have not been addressed in a while; categorized by a bot
Describe the issue
My goal is to load an onnx::ModelProto into an onnxruntime::Model. To use the method onnxruntime::Mode::Load I need a Logger. I tried to create a LoggingManager manually but the method didn't seem to work. Then, I used test/unittest_main/test_main.cc code to create an ort_env that is used to create a DefaultLoggingManager. However, I encountered the exception mentioned in the title.
To reproduce
When I run the code above, I run into the following exception in the first try catch clause :
logging.h:309 onnxruntime::logging::LoggingManager::DefaultLogger Attempt to use DefaultLogger but none has been registered.
Urgency
No response
Platform
Windows
OS Version
10
ONNX Runtime Installation
Built from Source
ONNX Runtime Version or Commit ID
1.17.1
ONNX Runtime API
C++
Architecture
X64
Execution Provider
Default CPU, CUDA
Execution Provider Library Version
No response
The text was updated successfully, but these errors were encountered: