Using logger
Refactore using WebStorm 7.0.3