bool ForceFlush(std::chrono::microseconds timeout=(std::chrono::microseconds::max)()) noexcept
Force all active LogProcessors to flush any buffered logs within the given timeout.
const instrumentationscope::ScopeConfigurator< LoggerConfig > & GetLoggerConfigurator() const noexcept
Obtain the ScopeConfigurator with this logger context.
A class which stores the LoggerContext context.
bool Shutdown(std::chrono::microseconds timeout=(std::chrono::microseconds::max)()) noexcept
Shutdown the log processor associated with this tracer provider.
LoggerContext(std::vector< std::unique_ptr< LogRecordProcessor >> &&processors, const opentelemetry::sdk::resource::Resource &resource=opentelemetry::sdk::resource::Resource::Create({}), std::unique_ptr< instrumentationscope::ScopeConfigurator< LoggerConfig >> logger_configurator=std::make_unique< instrumentationscope::ScopeConfigurator< LoggerConfig >>(instrumentationscope::ScopeConfigurator< LoggerConfig >::Builder(LoggerConfig::Default()) .Build())) noexcept
const opentelemetry::sdk::resource::Resource & GetResource() const noexcept
Obtain the resource associated with this tracer context.
LogRecordProcessor & GetProcessor() const noexcept
Obtain the configured (composite) processor.
void AddProcessor(std::unique_ptr< LogRecordProcessor > processor) noexcept
Attaches a log processor to list of configured processors to this logger context.