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.1.5 lib/filbunke/logger.rb
filbunke-1.1.4 lib/filbunke/logger.rb
filbunke-1.1.2 lib/filbunke/logger.rb
filbunke-1.1.1 lib/filbunke/logger.rb
filbunke-1.1.0 lib/filbunke/logger.rb
filbunke-1.0.0 lib/filbunke/logger.rb