lib/semantic_logger/appender/tcp.rb in semantic_logger-4.5.0 vs lib/semantic_logger/appender/tcp.rb in semantic_logger-4.6.0.beta1
- old
+ new
@@ -87,19 +87,19 @@
# ACK from the server before sending the last partial segment
# Buffering is recommended in a browser or file transfer style environment
# where multiple sends are expected during a single response
# Default: true
#
- # :connect_retry_count [Fixnum]
+ # :connect_retry_count [Integer]
# Number of times to retry connecting when a connection fails
# Default: 10
#
# :connect_retry_interval [Float]
# Number of seconds between connection retry attempts after the first failed attempt
# Default: 0.5
#
- # :retry_count [Fixnum]
+ # :retry_count [Integer]
# Number of times to retry when calling #retry_on_connection_failure
# This is independent of :connect_retry_count which still applies with
# connection failures. This retry controls upto how many times to retry the
# supplied block should a connection failure occurr during the block
# Default: 3
@@ -180,19 +180,19 @@
# server: 'server:3300',
# connect_retry_interval: 0.1,
# connect_retry_count: 5
# )
def initialize(separator: "\n",
- level: nil, formatter: nil, filter: nil, application: nil, host: nil, metrics: false,
+ level: nil, formatter: nil, filter: nil, application: nil, environment: nil, host: nil, metrics: false,
**tcp_client_args, &block)
@separator = separator
@tcp_client_args = tcp_client_args
# Use the internal logger so that errors with remote logging are only written locally.
Net::TCPClient.logger = logger
Net::TCPClient.logger.name = 'Net::TCPClient'
- super(level: level, formatter: formatter, filter: filter, application: application, host: host, &block)
+ super(level: level, formatter: formatter, filter: filter, application: application, environment: environment, host: host, &block)
reopen
end
# After forking an active process call #reopen to re-open the handles to resources.
def reopen