Console.logging realm functions

How can I push debug messages in my realm function with the purpose of being able to later read those messages with the CLI realm-cli logs list ?