示例#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));
        }
示例#2
0
 public GraylogOutput(GraylogOutputSettings settings)
 {
     _settings = settings;
 }