added logging method for both java and python
added example in randombot on how to use logging method