Sha256: 72d4cfe5dca5d6d6413d91883325fa292b363518888764e5be4ba13db5be44b6

Contents?: true

Size: 375 Bytes

Versions: 11

Compression:

Stored size: 375 Bytes

Contents

# frozen_string_literal: true

module Prefab
  class SseLogger < InternalLogger
    def initialize()
      super("sse")
    end

    # The SSE::Client warns on a perfectly normal stream disconnect, recast to info
    def warn(msg = nil,**log_context,  &block)
      Prefab::LoggerClient.instance.log_internal ::Logger::INFO, msg, @path, log_context, &block
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
prefab-cloud-ruby-1.5.1 lib/prefab/sse_logger.rb
prefab-cloud-ruby-1.5.0 lib/prefab/sse_logger.rb
prefab-cloud-ruby-1.4.5 lib/prefab/sse_logger.rb
prefab-cloud-ruby-1.4.4 lib/prefab/sse_logger.rb
prefab-cloud-ruby-1.4.3 lib/prefab/sse_logger.rb
prefab-cloud-ruby-1.4.2 lib/prefab/sse_logger.rb
prefab-cloud-ruby-1.4.1 lib/prefab/sse_logger.rb
prefab-cloud-ruby-1.4.0 lib/prefab/sse_logger.rb
prefab-cloud-ruby-1.3.2 lib/prefab/sse_logger.rb
prefab-cloud-ruby-1.3.1 lib/prefab/sse_logger.rb
prefab-cloud-ruby-1.3.0 lib/prefab/sse_logger.rb