lib/semantic_logger/appender/syslog.rb in semantic_logger-3.4.1 vs lib/semantic_logger/appender/syslog.rb in semantic_logger-4.0.0.beta1

- old
+ new

@@ -64,11 +64,11 @@ # tcp_client: [Hash] # Default: {} # Only used with the TCP protocol. # Specify custom parameters to pass into Net::TCPClient.new # For a list of options see the net_tcp_client documentation: - # https://www.omniref.com/ruby/gems/net_tcp_client/1.0.0/symbols/Net::TCPClient/initialize + # https://github.com/rocketjob/net_tcp_client/blob/master/lib/net/tcp_client/tcp_client.rb # # level: [:trace | :debug | :info | :warn | :error | :fatal] # Override the log level for this appender. # Default: SemanticLogger.default_level # @@ -194,10 +194,10 @@ case @protocol when :syslog ::Syslog.open(application, @options, @facility) when :tcp # Use the local logger for @remote_syslog so errors with the remote logger can be recorded locally. - @tcp_client_options[:logger] = SemanticLogger::Logger.logger + @tcp_client_options[:logger] = SemanticLogger::Processor.logger.clone @remote_syslog = Net::TCPClient.new(@tcp_client_options) when :udp @remote_syslog = UDPSocket.new else raise "Unsupported protocol: #{@protocol}"