Sha256: 1e0f8c72e1bd415a55ec22b633b9e24037e61c883470304aa89dc7ed6abab505

Contents?: true

Size: 325 Bytes

Versions: 6

Compression:

Stored size: 325 Bytes

Contents

module Process::Naf::Logger
  class Base < ::Af::Application

    def work
      log_file = ::Logical::Naf::LogFile.new(file_path)
      log_file.open

      while $stdin.gets
        begin
          log_file << $_.rstrip
        ensure
          log_file.write
        end
      end

      log_file.close
    end

  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
naf-2.1.13 app/models/process/naf/logger/base.rb
naf-2.1.12 app/models/process/naf/logger/base.rb
naf-2.1.11 app/models/process/naf/logger/base.rb
naf-2.1.10 app/models/process/naf/logger/base.rb
naf-2.1.9 app/models/process/naf/logger/base.rb
naf-2.1.8 app/models/process/naf/logger/base.rb