diff --git a/onnxruntime/core/common/logging/sinks/ostream_sink.cc b/onnxruntime/core/common/logging/sinks/ostream_sink.cc index 0db3d8709d..02df7aedca 100644 --- a/onnxruntime/core/common/logging/sinks/ostream_sink.cc +++ b/onnxruntime/core/common/logging/sinks/ostream_sink.cc @@ -45,8 +45,8 @@ void OStreamSink::SendImpl(const Timestamp& timestamp, const std::string& logger } #endif - msg << timestamp << " [" << message.SeverityPrefix() << ":" << message.Category() << ":" << logger_id << ", " - << message.Location().ToString() << "] " << message.Message(); +// msg << timestamp << " [" << message.SeverityPrefix() << ":" << message.Category() << ":" << logger_id << ", " +// << message.Location().ToString() << "] " << message.Message(); #ifndef ORT_MINIMAL_BUILD if (message.Severity() == Severity::kWARNING || @@ -87,8 +87,8 @@ void WOStreamSink::SendImpl(const Timestamp& timestamp, const std::string& logge } #endif - msg << timestamp << L" [" << message.SeverityPrefix() << L":" << message.Category() << L":" << ToWideString(logger_id) << L", " - << ToWideString(message.Location().ToString()) << L"] " << ToWideString(message.Message()); +// msg << timestamp << L" [" << message.SeverityPrefix() << L":" << message.Category() << L":" << ToWideString(logger_id) << L", " +// << ToWideString(message.Location().ToString()) << L"] " << ToWideString(message.Message()); #ifndef ORT_MINIMAL_BUILD if (message.Severity() == Severity::kWARNING || diff --git a/onnxruntime/core/platform/apple/logging/apple_log_sink.mm b/onnxruntime/core/platform/apple/logging/apple_log_sink.mm index 8dbd8eecd0..ad111879e3 100644 --- a/onnxruntime/core/platform/apple/logging/apple_log_sink.mm +++ b/onnxruntime/core/platform/apple/logging/apple_log_sink.mm @@ -15,8 +15,8 @@ void AppleLogSink::SendImpl(const Timestamp& timestamp, const std::string& logger_id, const Capture& message) { using date::operator<<; std::ostringstream msg; - msg << timestamp << " [" << message.SeverityPrefix() << ":" << message.Category() << ":" << logger_id << ", " - << message.Location().ToString() << "] " << message.Message(); +// msg << timestamp << " [" << message.SeverityPrefix() << ":" << message.Category() << ":" << logger_id << ", " +// << message.Location().ToString() << "] " << message.Message(); NSLog(@"%s", msg.str().c_str()); } diff --git a/onnxruntime/test/common/logging/helpers.h b/onnxruntime/test/common/logging/helpers.h index c8d0270228..80bf5ab040 100644 --- a/onnxruntime/test/common/logging/helpers.h +++ b/onnxruntime/test/common/logging/helpers.h @@ -34,9 +34,9 @@ ACTION(PrintArgs) { // const Timestamp ×tamp, const std::string &logger_id, const Message &message // arg0 arg1 arg2 - std::cout << arg1 << "@" << arg0 << " " - << arg2.SeverityPrefix() << ":" << arg2.Category() << ":" - << arg2.Location().ToString(::onnxruntime::CodeLocation::kFilenameAndPath) << " " << arg2.Message() << std::endl; +// std::cout << arg1 << "@" << arg0 << " " +// << arg2.SeverityPrefix() << ":" << arg2.Category() << ":" +// << arg2.Location().ToString(::onnxruntime::CodeLocation::kFilenameAndPath) << " " << arg2.Message() << std::endl; }; #ifdef _MSC_VER diff --git a/onnxruntime/test/util/include/test/capturing_sink.h b/onnxruntime/test/util/include/test/capturing_sink.h index 3978894760..4e43453de6 100644 --- a/onnxruntime/test/util/include/test/capturing_sink.h +++ b/onnxruntime/test/util/include/test/capturing_sink.h @@ -20,8 +20,8 @@ class CapturingSink : public logging::ISink { using date::operator<<; std::ostringstream msg; - msg << timestamp << " [" << message.SeverityPrefix() << ":" << message.Category() << ":" << logger_id << ", " - << message.Location().ToString() << "] " << message.Message(); +// msg << timestamp << " [" << message.SeverityPrefix() << ":" << message.Category() << ":" << logger_id << ", " +// << message.Location().ToString() << "] " << message.Message(); messages_.push_back(msg.str()); }