# File lib/mole/logger.rb, line 122 def log_it( context, feature, user_id, args ) args ||= "no args" user_id ||= "N/A" ip_addr, browser_type = MoleLog.log_details( context ) info = [] args.keys.sort { |a,b| a.to_s <=> b.to_s }.each { |k| info << "#{k}=>#{args[k]}" } buff = "" buff << "[#{ip_addr}/#{browser_type}]--" if ip_addr and browser_type buff << "#{context.class.name}(#{feature}) --- #{user_id} -> #{info.join( ', ' ) }" self.info( buff ) end