Use Ruby Logger class for logging. 

I changed the logger method to use the api of Logger class from Ruby.

:warning: This change isnt Backward compatibility.

Let me know if need anything.