Method: Comunit::Network::Logging#log
- Defined in:
- app/services/comunit/network/logging.rb
#log(text) ⇒ Object
8 9 10 11 12 13 14 15 |
# File 'app/services/comunit/network/logging.rb', line 8 def log(text) file = "#{Rails.root}/log/network_manager.log" File.open(file, 'ab') do |f| f.puts "#{Time.now.strftime('%F %T')}\t#{text}" end nil end |