Sha256: 73cb913aba711a9cb91d00418bc8c725bb192cdf1d99a0a530551eb0ec0db9c8

Contents?: true

Size: 487 Bytes

Versions: 5

Compression:

Stored size: 487 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

5 entries across 5 versions & 1 rubygems

Version Path
RTALogger-2.0.2 lib/log_repository_console.rb
RTALogger-2.0.1 lib/log_repository_console.rb
RTALogger-2.0.0 lib/log_repository_console.rb
RTALogger-1.1.1 lib/log_repository_console.rb
RTALogger-1.1.0 lib/log_repository_console.rb