Logs customization doc: add processor (#3042)
This commit is contained in:
parent
ac2a4f4ebb
commit
3e522b7e7e
|
|
@ -26,7 +26,21 @@ TODO
|
|||
|
||||
### AddProcessor
|
||||
|
||||
TODO
|
||||
[Processors](https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/logs/logging-library-sdk.md#logprocessor)
|
||||
must be added using `OpenTelemetryLoggerOptions.AddProcessor()`.
|
||||
It is not supported to add Processors after building the `LoggerFactory`.
|
||||
|
||||
```csharp
|
||||
var loggerFactory = LoggerFactory.Create(builder =>
|
||||
{
|
||||
builder.AddOpenTelemetry(options =>
|
||||
{
|
||||
options.AddProcessor(...)
|
||||
});
|
||||
});
|
||||
```
|
||||
|
||||
For more information on Processors, please review [Extending the SDK](../extending-the-sdk/README.md#processor)
|
||||
|
||||
### SetResourceBuilder
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue