◆ Create() [1/6]
Create a LoggerContext with specified LogRecordProcessors.
- Parameters
-
| processors | A vector of log processors that can parse the logs. |
- Returns
- A unique pointer to the created LoggerContext object.
◆ Create() [2/6]
Create a LoggerContext with specified LogRecordProcessors.
- Parameters
-
| processors | A vector of log processors that can parse the logs. |
- Returns
- A unique pointer to the created LoggerContext object.
◆ Create() [3/6]
| static std::unique_ptr<LoggerContext> sdk::logs::LoggerContextFactory::Create |
( |
std::vector< std::unique_ptr< LogRecordProcessor >> && |
processors, |
|
|
const opentelemetry::sdk::resource::Resource & |
resource |
|
) |
| |
|
static |
Create a LoggerContext with specified LogRecordProcessors and OpenTelemetry resource.
- Parameters
-
| processors | A vector of log processors that can parse the logs. |
| resource | The OpenTelemetry resource responsible for generating the logs. |
- Returns
- A unique pointer to the created LoggerContext object.
◆ Create() [4/6]
| static std::unique_ptr<LoggerContext> sdk::logs::LoggerContextFactory::Create |
( |
std::vector< std::unique_ptr< LogRecordProcessor >> && |
processors, |
|
|
const opentelemetry::sdk::resource::Resource & |
resource |
|
) |
| |
|
static |
Create a LoggerContext with specified LogRecordProcessors and OpenTelemetry resource.
- Parameters
-
| processors | A vector of log processors that can parse the logs. |
| resource | The OpenTelemetry resource responsible for generating the logs. |
- Returns
- A unique pointer to the created LoggerContext object.
◆ Create() [5/6]
Create a LoggerContext with specified LogRecordProcessors, OpenTelemetry resource and a logger ScopeConfigurator.
- Parameters
-
| processors | A vector of log processors that can parse the logs. |
| resource | The OpenTelemetry resource responsible for generating the logs. |
| logger_configurator | A ScopeConfigurator that can be used compute the LoggerConfig for a given InstrumentationScope. |
- Returns
- A unique pointer to the created LoggerContext object.
◆ Create() [6/6]
Create a LoggerContext with specified LogRecordProcessors, OpenTelemetry resource and a logger ScopeConfigurator.
- Parameters
-
| processors | A vector of log processors that can parse the logs. |
| resource | The OpenTelemetry resource responsible for generating the logs. |
| logger_configurator | A ScopeConfigurator that can be used compute the LoggerConfig for a given InstrumentationScope. |
- Returns
- A unique pointer to the created LoggerContext object.
The documentation for this class was generated from the following file: