<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="10.0.2" />

Microsoft.Extensions.Internal.TypeNameHelper

static class TypeNameHelper
public static string GetTypeDisplayName(object item, bool fullName = true)

public static string GetTypeDisplayName(Type type, bool fullName = true, bool includeGenericParameterNames = false, bool includeGenericParameters = true, char nestedTypeDelimiter = '+')

Pretty print a type name.