How to print text to browserstack?

We are using the Appium+Python framework for our app. the tests will run on the browserstack simulators. How to log any text there?