Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@ struct ProviderHost {

// logging::LoggingManager
virtual const logging::Logger& logging__LoggingManager__DefaultLogger() = 0;
virtual bool logging__LoggingManager__HasDefaultLogger() = 0;

// logging::Capture
virtual std::unique_ptr<logging::Capture> logging__Capture__construct(const logging::Logger& logger,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ struct Logger final {

struct LoggingManager final {
static const Logger& DefaultLogger() { return g_host->logging__LoggingManager__DefaultLogger(); }
static bool HasDefaultLogger() { return g_host->logging__LoggingManager__HasDefaultLogger(); }

PROVIDER_DISALLOW_ALL(LoggingManager)
};
Expand Down
1 change: 1 addition & 0 deletions onnxruntime/core/session/provider_bridge_ort.cc
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,7 @@ struct ProviderHostImpl : ProviderHost {

// logging::LoggingManager (wrapped)
const logging::Logger& logging__LoggingManager__DefaultLogger() override { return logging::LoggingManager::DefaultLogger(); }
bool logging__LoggingManager__HasDefaultLogger() override { return logging::LoggingManager::HasDefaultLogger(); }

// logging::Capture (wrapped)
std::unique_ptr<logging::Capture> logging__Capture__construct(const logging::Logger& logger,
Expand Down
Loading