Sha256: 237ca7db12226d01ca9554cdc81277be99698b59834e243c9e0766419465ee23

Contents?: true

Size: 488 Bytes

Versions: 8

Compression:

Stored size: 488 Bytes

Contents

require_relative 'log_repository'
require_relative 'log_factory_log_formatter'

module RTALogger
  # show log items on console out put
  class LogRepositoryConsole < LogRepository
    def initialize
      super
    end

    def load_config(config_json)
      super
    end

    # register :console

    protected

    def flush_and_clear
      @semaphore.synchronize do
        @log_records.each { |log_record| puts @formatter.format(log_record) }
      end
      super
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
RTALogger-2.4.0 lib/log_repository_console.rb
RTALogger-2.3.1 lib/log_repository_console.rb
RTALogger-2.3.0 lib/log_repository_console.rb
RTALogger-2.2.2 lib/log_repository_console.rb
RTALogger-2.2.0 lib/log_repository_console.rb
RTALogger-2.1.2 lib/log_repository_console.rb
RTALogger-2.1.1 lib/log_repository_console.rb
RTALogger-2.1.0 lib/log_repository_console.rb