Sha256: 6d4937c67fc705bca1c6297f910147ca1c5d75429bd26af981bfe4973fd1e07b

Contents?: true

Size: 230 Bytes

Versions: 26

Compression:

Stored size: 230 Bytes

Contents

module Filbunke
  class Logger

    def initialize(log_file_name)
      @log_file = ::File.open(log_file_name, "a")
    end

    def log(msg)
      @log_file.write("#{Time.now}: #{msg}\n")
      @log_file.flush
    end

  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
filbunke-1.6.0 lib/filbunke/logger.rb
filbunke-1.5.3 lib/filbunke/logger.rb
filbunke-1.5.2 lib/filbunke/logger.rb
filbunke-1.5.1 lib/filbunke/logger.rb
filbunke-1.5.0 lib/filbunke/logger.rb
filbunke-1.4.1 lib/filbunke/logger.rb
filbunke-1.4.0 lib/filbunke/logger.rb
filbunke-1.3.0 lib/filbunke/logger.rb
filbunke-1.2.1 lib/filbunke/logger.rb
filbunke-1.2.0 lib/filbunke/logger.rb
filbunke-1.1.15 lib/filbunke/logger.rb
filbunke-1.1.14 lib/filbunke/logger.rb
filbunke-1.1.13 lib/filbunke/logger.rb
filbunke-1.1.12 lib/filbunke/logger.rb
filbunke-1.1.11 lib/filbunke/logger.rb
filbunke-1.1.10 lib/filbunke/logger.rb
filbunke-1.1.9 lib/filbunke/logger.rb
filbunke-1.1.8 lib/filbunke/logger.rb
filbunke-1.1.7 lib/filbunke/logger.rb
filbunke-1.1.6 lib/filbunke/logger.rb