net9.0
namespace Microsoft.Extensions.Telemetry.Console
{
public static class LoggingConsoleExtensions
{
[DynamicDependency(DynamicallyAccessedMemberTypes.PublicParameterlessConstructor | DynamicallyAccessedMemberTypes.PublicProperties, typeof(LoggingConsoleOptions))]
[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "Addressed by [DynamicDependency]")]
public static ILoggingBuilder! AddConsoleExporter(this ILoggingBuilder! builder, IConfigurationSection! section);
}
}
.NET | 6.07.08.09.0 |
---|---|
Information specific to net9.0 | |
Assembly | Microsoft.Extensions.Telemetry.Console , Version=8.0.0.0, PublicKeyToken=31bf3856ad364e35 |
Referencing | Your project needs a package reference to |
Package | Microsoft.Extensions.Telemetry.Console (8.0.0-preview.5.23308.3) net8.0 |
Preview | This API is marked as experimental.(more details) |
Platform Restrictions | This API is supported on all platforms. |