Sha256: b55a77011e3f8b41d1e15b462c3305a60db7ac90eb7f357d6b8d045c5f5226f5

Contents?: true

Size: 484 Bytes

Versions: 1

Compression:

Stored size: 484 Bytes

Contents

# frozen_string_literal: true

# This modules helps to write into the log file
# Usage:
#   include PhNoToWord::Logger
#   def do_something
#     begin
#       # do something
#     rescue StandardError => e
#       log :error, e.message
#     end
#   end
module PhNoToWord
  module Logger
    # TODO
    # Log a PhNoToWord-specific line.
    # def log(level, message)
    #   File.open('error.log', 'a') do |f|
    #     f.write "#{level}: #{message}"
    #   end
    # end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ph_no_to_word-2.1.0 lib/ph_no_to_word/logger.rb