Small logging cleanup

* Global logger is used
* Small syntax errors fixed

Please, take a look at these changes.