Use custom logger instead of logging

Now log could work. I will add verbose mode, debug output in console.