diff --git a/include/onnxruntime/core/session/onnxruntime_c_api.h b/include/onnxruntime/core/session/onnxruntime_c_api.h index 799cc63262..ccd7580e4f 100644 --- a/include/onnxruntime/core/session/onnxruntime_c_api.h +++ b/include/onnxruntime/core/session/onnxruntime_c_api.h @@ -92,11 +92,11 @@ typedef enum ONNXType { } ONNXType; typedef enum OrtLoggingLevel { - ORT_LOGGING_LEVEL_kVERBOSE, - ORT_LOGGING_LEVEL_kINFO, - ORT_LOGGING_LEVEL_kWARNING, - ORT_LOGGING_LEVEL_kERROR, - ORT_LOGGING_LEVEL_kFATAL, + ORT_LOGGING_LEVEL_VERBOSE, + ORT_LOGGING_LEVEL_INFO, + ORT_LOGGING_LEVEL_WARNING, + ORT_LOGGING_LEVEL_ERROR, + ORT_LOGGING_LEVEL_FATAL, } OrtLoggingLevel; typedef enum OrtErrorCode { diff --git a/onnxruntime/test/onnx/main.cc b/onnxruntime/test/onnx/main.cc index 89c99cdb08..4d9bb61d94 100644 --- a/onnxruntime/test/onnx/main.cc +++ b/onnxruntime/test/onnx/main.cc @@ -82,7 +82,7 @@ int real_main(int argc, char* argv[]) { bool enable_cuda = false; bool enable_mkl = false; bool enable_nuphar = false; - OrtLoggingLevel logging_level = ORT_LOGGING_LEVEL_kWARNING; + OrtLoggingLevel logging_level = ORT_LOGGING_LEVEL_WARNING; { int ch; while ((ch = getopt(argc, argv, ORT_TSTR("Ac:hj:m:n:r:e:xv"))) != -1) { @@ -91,7 +91,7 @@ int real_main(int argc, char* argv[]) { enable_cpu_mem_arena = false; break; case 'v': - logging_level = ORT_LOGGING_LEVEL_kINFO; + logging_level = ORT_LOGGING_LEVEL_INFO; break; case 'c': concurrent_session_runs = static_cast(MyStrtol(optarg, nullptr, 10)); diff --git a/onnxruntime/test/shared_lib/fns_candy_style_transfer.c b/onnxruntime/test/shared_lib/fns_candy_style_transfer.c index c5e0d9d60a..86a37bf310 100644 --- a/onnxruntime/test/shared_lib/fns_candy_style_transfer.c +++ b/onnxruntime/test/shared_lib/fns_candy_style_transfer.c @@ -198,7 +198,7 @@ int main(int argc, char* argv[]) { char* input_file = argv[2]; char* output_file = argv[3]; OrtEnv* env; - ORT_ABORT_ON_ERROR(OrtInitialize(ORT_LOGGING_LEVEL_kWARNING, "test", &env)); + ORT_ABORT_ON_ERROR(OrtInitialize(ORT_LOGGING_LEVEL_WARNING, "test", &env)); OrtSessionOptions* session_option = OrtCreateSessionOptions(); #ifdef USE_CUDA enable_cuda(session_option); diff --git a/onnxruntime/test/shared_lib/test_fixture.h b/onnxruntime/test/shared_lib/test_fixture.h index d510240fc3..20b5cb877e 100644 --- a/onnxruntime/test/shared_lib/test_fixture.h +++ b/onnxruntime/test/shared_lib/test_fixture.h @@ -22,9 +22,9 @@ class CApiTestImpl : public ::testing::Test { void SetUp() override { if (use_customer_logger) { - ORT_THROW_ON_ERROR(OrtInitializeWithCustomLogger(MyLoggingFunction, nullptr, ORT_LOGGING_LEVEL_kINFO, "Default", &env)); + ORT_THROW_ON_ERROR(OrtInitializeWithCustomLogger(MyLoggingFunction, nullptr, ORT_LOGGING_LEVEL_INFO, "Default", &env)); } else { - ORT_THROW_ON_ERROR(OrtInitialize(ORT_LOGGING_LEVEL_kINFO, "Default", &env)); + ORT_THROW_ON_ERROR(OrtInitialize(ORT_LOGGING_LEVEL_INFO, "Default", &env)); } }