How can I log message with Appium/Ruby?

I want to log messages on terminal view so that I can log the results of a test to revisit it again?

Write to STDOUT using you client languageā€™s print variant. Your shell should also allow you redirect STDOUT to a file, eg $> runmytest.py >> log.txt

Appium automatically logs to terminal when launched from the cmd line.

Thank you for your help. I got it!