module ERDL
  class Base
    def self.log_action(page, action, options = nil)
      @options = options
      log_time = Time.new.strftime('%Y-%m-%d %H:%M:%S')
      if @options
        puts(log_time + ' | ' + page + ' | ' + action + ' | ' + @options)
      else
        puts(log_time + ' | ' + page + ' | ' + action)
      end
    end
  end
end
