public OutputHandlerBase Create(IServiceProvider serviceProvider, IConfigurationSection outputConfiguration) { var config = new GraylogOutputSettings(); outputConfiguration.Bind(config); Validator.ValidateObject(config, new ValidationContext(config)); return(ActivatorUtilities.CreateInstance <GraylogOutput>(serviceProvider, config)); }
public GraylogOutput(GraylogOutputSettings settings) { _settings = settings; }