Registrar ninject inicialização de aplicativos de dependências resolvidas

Começamos a usar o Ninject versão 2 como nosso contêiner de IoC, juntamente com a extensão para resolução por convenções de nomenclatura. Também estamos usando o log4net para o nosso registro.

O que eu gostaria é que o Ninject registre todas as dependências encontradas e o que as resolverá, de preferência na inicialização do aplicativo.

Encontrei a extensão de log, mas não consigo encontrar documentação ou exemplos de como usá-la para obter isso.

Editar:

Como foi solicitada aqui, é a classe que registra as ligações padrão na inicialização, usando log4net

classe pública DefaultBindingGeneratorWithLogging: IBindingGenerator {kernel IKernel privado somente leitura;

    /// <summary>
    /// Initializes a new instance of the <see cref="DefaultBindingGeneratorWithLogging"/> class.
    /// </summary>
    /// <param name="kernel">The kernel.</param>
    public DefaultBindingGeneratorWithLogging(IKernel kernel)
    {
        this.kernel = kernel;
    }

    /// <summary>
    /// Creates the bindings for a type.
    /// </summary>
    /// <param name="type">The type for which the bindings are created.</param>
    /// <param name="bindingRoot">The binding root that is used to create the bindings.</param>
    /// <returns>
    /// The syntaxes for the created bindings to configure more options.
    /// </returns>
    public IEnumerable<IBindingWhenInNamedWithOrOnSyntax<object>> CreateBindings(Type type, IBindingRoot bindingRoot)
    {
        if (type.IsInterface || type.IsAbstract)
        {
            yield break;
        }

        Type interfaceForType = type.GetInterface("I" + type.Name, false);
        if (interfaceForType == null)
        {
            yield break;
        }

        var log = kernel.Get<ILog>();
        if (!(kernel.GetBindings(interfaceForType).Any()))
        {
            bindingRoot.Bind(interfaceForType).To(type).InTransientScope();
            if (log.IsInfoEnabled && !String.IsNullOrWhiteSpace(interfaceForType.FullName))
            {
                log.InfoFormat("Mapping {0} -> {1}", type.FullName, interfaceForType.FullName);
            }
        }
        else
        {                
            log.InfoFormat("Didn't map {0} -> {1} mapping already exists", type.FullName, interfaceForType.FullName);
        }
    }
}

questionAnswers(1)

yourAnswerToTheQuestion