Fix getLogger function and refactor getFormatter
Merge pull request #4 from GM-Alex/fix-getLogger-function

Fix getLogger function and refactor getFormatter