Method: MotionPrime::Logger#output

Defined in:
motion-prime/services/logger.rb

#output(message) ⇒ Object

Output message, using “puts” for simulator and NSLog for Device.

Parameters:

  • message (String)

    Message or array of messages to output.



42
43
44
45
46
47
48
49
50
# File 'motion-prime/services/logger.rb', line 42

def output(message)
  return if disabled
  if Device.simulator?
    puts(message)
  else
    NSLog(message)
  end
  message
end