Logs customization doc: add processor (#3042)

This commit is contained in:
Timothy Mothra 2022-03-31 14:04:59 -07:00 committed by GitHub
parent ac2a4f4ebb
commit 3e522b7e7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 15 additions and 1 deletions

View File

@ -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