/// <summary> /// Initializes a new instance of the <see cref="GelfMessageBuilder"/> class. /// </summary> /// <param name="hostName">Name of the host.</param> /// <param name="options">The options.</param> public GelfMessageBuilder(string hostName, GraylogSinkOptionsBase options) { _hostName = hostName; _serializer = JsonSerializer.Create(options.SerializerSettings); Options = options; }
/// <summary> /// Initializes a new instance of the <see cref="ExceptionMessageBuilder"/> class. /// </summary> /// <param name="hostName">Name of the host.</param> /// <param name="options">The options.</param> public ExceptionMessageBuilder(string hostName, GraylogSinkOptionsBase options) : base(hostName, options) { }
/// <summary> /// Initializes a new instance of the <see cref="GelfMessageBuilder"/> class. /// </summary> /// <param name="hostName">Name of the host.</param> /// <param name="options">The options.</param> public GelfMessageBuilder(string hostName, GraylogSinkOptionsBase options) { _hostName = hostName; Options = options; }