Skip to content
This repository was archived by the owner on Jun 1, 2024. It is now read-only.

Enable configuration of IndexDecider also from a config file  #577

@kbalys

Description

@kbalys

New feature request

Please describe the current behavior?

Currently IndexDecider setting can be set only from code.

public Func<LogEvent, DateTimeOffset, string> IndexDecider { get; set; }

I would like to have a possibility to set IndexDecider from configuration as well.

Please describe the expected behavior?
LoggerConfigurationElasticsearchExtensions.Elasticsearch should be changed to include IndexDecider as well which can be a string in class name, assembly format. Additionally, we would need an interface or base class which can be used for this setting with a single property which matches the definition of IndexDecider. The code in LoggerConfigurationElasticsearchExtensions.Elasticsearch can activate the class name provided by configuration and assign its property to the options.IndexDecider property

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions