Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
 public GraylogOutput(GraylogOutputSettings settings)
 {
     _settings = settings;
 }