def0807fdd5704c534b92b279eb6b1a801834af5
- فایل: MIddlewares/XRequestLoggingMiddleware.cs (NEW)
- ویژگی: Simple/Full logging modes
- قابلیت: HTTP request/response logging، exception handling
⚠️ توجه: نام پوشه "MIddlewares" typo است - باید تصحیح شود
2.2) توسعه DI
- متد: AddXTelemetryLogger() - logging configuration
- متد: AddXTelemetry() - host builder extension
- متد: UseXRequestLogger() - middleware registration
2.3) بهروزرسانی Dependencies
- OpenTelemetry.Extensions.Hosting v1.6.0
- OpenTelemetry.Instrumentation.Http v1.6.0
- OpenTelemetry.Instrumentation.AspNetCore v1.6.0
- OpenTelemetry.Exporter.OpenTelemetryProtocol v1.6.0
- Microsoft.Extensions.Logging.Console v5.0.0
xLoggingService
provide all commonly used actions/extensions and classes which required to Logging/Tracing Feature in xDashboard project.
Implementing
after adding this package as a dependency to your project you can do following:
1. Register it on DI
Maintainer
Hadi Khazaee asl
Languages
C#
100%